Skip to content

Commit 9ece7be

Browse files
work around quickcheck bug more aggressively
1 parent 6d627cc commit 9ece7be

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/Constrained/Tests.hs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,9 @@ testAll = hspec $ tests False
6060
tests :: Bool -> Spec
6161
tests nightly =
6262
describe "constrained" . modifyMaxSuccess (\ms -> if nightly then ms * 10 else ms) $ do
63-
#if MIN_VERSION_QuickCheck(2, 16, 0)
6463
testSpec "setOfPairLetSpec" setOfPairLetSpec
6564
testSpec "setPair" setPair
6665
testSpec "mapElemSpec" mapElemSpec
67-
#else
68-
testSpecNoShrink "setOfPairLetSpec" setOfPairLetSpec
69-
testSpecNoShrink "setPair" setPair
70-
testSpecNoShrink "mapElemSpec" mapElemSpec
71-
#endif
7266
testSpec "complicatedEither" complicatedEither
7367
testSpec "pairCant" pairCant
7468
-- TODO: figure out why this doesn't shrink
@@ -322,11 +316,13 @@ testSpec' withShrink n s = do
322316
checkCoverage' $
323317
prop_constrained_explained s
324318

319+
#if MIN_VERSION_QuickCheck(2, 16, 0)
325320
when withShrink $
326321
prop "prop_shrink_sound" $
327322
discardAfter 100_000 $
328323
checkCoverage' $
329324
prop_shrink_sound s
325+
#endif
330326

331327
------------------------------------------------------------------------
332328
-- Test properties of the instance Num (NumSpec Integer)

0 commit comments

Comments
 (0)