We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd8d0a commit 4ca4c03Copy full SHA for 4ca4c03
1 file changed
src/Test/QuickCheck.purs
@@ -108,11 +108,11 @@ instance coarbUnit :: CoArbitrary Unit where
108
109
instance arbOrdering :: Arbitrary Ordering where
110
arbitrary = do
111
- n <- (3 *) <$> uniform
+ n <- chooseInt 1 3
112
return $ case n of
113
- _ | n < 1 -> LT
114
- | n < 2 -> EQ
115
- | otherwise -> GT
+ 1 -> LT
+ 2 -> EQ
+ 3 -> GT
116
117
instance coarbOrdering :: CoArbitrary Ordering where
118
coarbitrary LT = perturbGen 1
0 commit comments