-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add valid-range-aware int shrinker
This enables having shinking that is kept within the range given to generator, so shrinker, for example, avoids shrinking to zero if zero is regarded as out of range in given property. - Refactor: Simplify the int decrement iterator. The iterator is used in int shrinking, and did before have knowledge of it being used togheter with eager shrink iterator. Simplify decrement shrinker by having the logic for not repeating some values to the eager iterator instead. - Deprecate old `shrink::int()`, and refer to use of either `shrink::int_in_range` for updated use or `shrink::int_to_zero` for old behaviour. - Let shrinker emit candidates on both sides of target value, in essence trying out more candidates before giving up.
- Loading branch information
Showing
10 changed files
with
334 additions
and
86 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
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
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
Oops, something went wrong.