-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colblk: ensure test coverage of UintBuilder array doubling loop
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.
- Loading branch information
Showing
2 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters