-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gen.pick, Gen.someOf, and Gen.atLeastOne will give a randomly chosen subset of elements, but not in a random order. This is because Gen.pick is implemented with reservoir sampling but without a shuffle operation. Adding shuffling might be possible, but it could impact performance and would violate the "do one thing well" principle of Gen.pick. For now, just document the situation that results aren't permuted in the User Guide and in the API docs. Use a simpler example, picking only 3 of 4, for the distribution property check of Gen.pick in the test suite.
- Loading branch information
Showing
3 changed files
with
50 additions
and
4 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