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.
Testable (Gen prop)
1 parent 6bae4fc commit a5763c9Copy full SHA for a5763c9
src/Test/QuickCheck.purs
@@ -138,6 +138,9 @@ instance testableBoolean :: Testable Boolean where
138
instance testableFunction :: (Arbitrary t, Testable prop) => Testable (t -> prop) where
139
test f = arbitrary >>= test <<< f
140
141
+instance testableGen :: Testable prop => Testable (Gen prop) where
142
+ test = flip bind test
143
+
144
-- | The result of a test: success or failure (with an error message).
145
data Result = Success | Failed String
146
0 commit comments