Previously the body of the array doubling loop in UintBuilder.Set was
unexercised:
for n2 <= row {
n2 <<= 1 /* double the size */
}
In part due to the initialization that precedes the loop:
n2 := max(b.array.n<<1, 32)
This commit adds a datadriven test case that exercises it, and a new
TestUintsRandomized randomized test that is reasonably likely to exercise it as
well.
Previously the body of the array doubling loop in UintBuilder.Set was unexercised:
In part due to the initialization that precedes the loop:
This commit adds a datadriven test case that exercises it, and a new TestUintsRandomized randomized test that is reasonably likely to exercise it as well.