You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
any(?) tests using guards/discard will fail with GaveUp even when they should succeed
this test fails when used with hspec-hedgehog, but succeeds when run with the hedgehog check method
importControl.Monad (guard)
importqualifiedHedgehog.GenasGenimportqualifiedHedgehog.RangeasRangeimportTest.HspecimportTest.Hspec.HedgehogimportPreludelist::MonadGenm=>ma->m [a]
list =Gen.list (Range.constant 03)
prop::PropertyTIO()
prop =do
l <- forAll (list Gen.bool)
let (h : _) = l
guard (l /=[])
head l === h
main::IO()
main =do
check $ property prop
hspec $ it "???"$ hedgehog prop
The text was updated successfully, but these errors were encountered:
any(?) tests using guards/discard will fail with
GaveUp
even when they should succeedthis test fails when used with hspec-hedgehog, but succeeds when run with the hedgehog
check
methodThe text was updated successfully, but these errors were encountered: