-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…4580) This PR adds the following generators to `Test.QuickCheck.Extra`: ```hs genNonEmptyDisjointSet :: Ord a => Gen a -> Set a -> Gen (Set a) genNonEmptyDisjointMap :: Ord k => Gen k -> Gen v -> Map k v -> Gen (Map k v) ``` These functions are useful in situations where you have a pre-existing `Set` (or `Map`), and you want to generate another `Set` (or `Map`) that is guaranteed to be non-empty and disjoint to the original. ## Issue ADP-3272
- Loading branch information
Showing
2 changed files
with
117 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