11{-# LANGUAGE AllowAmbiguousTypes #-}
2+ {-# LANGUAGE CPP #-}
23{-# LANGUAGE ConstraintKinds #-}
34{-# LANGUAGE DataKinds #-}
45{-# LANGUAGE FlexibleContexts #-}
@@ -59,6 +60,10 @@ testAll = hspec $ tests False
5960tests :: Bool -> Spec
6061tests nightly =
6162 describe " constrained" . modifyMaxSuccess (\ ms -> if nightly then ms * 10 else ms) $ do
63+ testSpec " signumPositive" signumPositive
64+ testSpec " setOfPairLetSpec" setOfPairLetSpec
65+ testSpec " setPair" setPair
66+ testSpec " mapElemSpec" mapElemSpec
6267 testSpec " complicatedEither" complicatedEither
6368 testSpec " pairCant" pairCant
6469 -- TODO: figure out why this doesn't shrink
@@ -70,7 +75,6 @@ tests nightly =
7075 testSpec " assertRealMultiple" assertRealMultiple
7176 testSpec " setSpec" setSpec
7277 testSpec " leqPair" leqPair
73- testSpec " setPair" setPair
7478 testSpecNoShrink " listEmpty" listEmpty
7579 testSpec " compositionalSpec" compositionalSpec
7680 testSpec " simplePairSpec" simplePairSpec
@@ -80,7 +84,6 @@ tests nightly =
8084 testSpec " maybeSpec" maybeSpec
8185 testSpecNoShrink " eitherSetSpec" eitherSetSpec
8286 testSpec " fooSpec" fooSpec
83- testSpec " mapElemSpec" mapElemSpec
8487 testSpec " mapElemKeySpec" mapElemKeySpec
8588 -- TODO: figure out why this doesn't shrink
8689 testSpecNoShrink " mapIsJust" mapIsJust
@@ -95,7 +98,6 @@ tests nightly =
9598 -- more detailed shrinking of `SuspendedSpec`s
9699 testSpecNoShrink " setPairSpec" setPairSpec
97100 testSpec " fixedSetSpec" fixedSetSpec
98- testSpec " setOfPairLetSpec" setOfPairLetSpec
99101 testSpecNoShrink " emptyEitherSpec" emptyEitherSpec
100102 testSpecNoShrink " emptyEitherMemberSpec" emptyEitherMemberSpec
101103 testSpec " setSingletonSpec" setSingletonSpec
@@ -316,11 +318,13 @@ testSpec' withShrink n s = do
316318 checkCoverage' $
317319 prop_constrained_explained s
318320
321+ #if MIN_VERSION_QuickCheck(2, 15, 0)
319322 when withShrink $
320323 prop " prop_shrink_sound" $
321324 discardAfter 100_000 $
322325 checkCoverage' $
323326 prop_shrink_sound s
327+ #endif
324328
325329------------------------------------------------------------------------
326330-- Test properties of the instance Num (NumSpec Integer)
0 commit comments