@@ -59,21 +59,18 @@ testAll = hspec $ tests False
5959tests :: Bool -> Spec
6060tests nightly =
6161 describe " constrained" . modifyMaxSuccess (\ ms -> if nightly then ms * 10 else ms) $ do
62- -- TODO: double-shrinking
62+ -- TODO: figure out why this doesn't shrink
6363 testSpecNoShrink " reifiesMultiple" reifiesMultiple
6464 testSpec " assertReal" assertReal
6565 testSpecNoShrink " chooseBackwards" chooseBackwards
6666 testSpecNoShrink " chooseBackwards'" chooseBackwards'
67- -- TODO: turn this on again when QuickCheck version is bumped
68- -- testSpec "whenTrueExists" whenTrueExists
67+ testSpec " whenTrueExists" whenTrueExists
6968 testSpec " assertRealMultiple" assertRealMultiple
70- -- TODO: quickcheck version
71- testSpecNoShrink " setSpec" setSpec
69+ testSpec " setSpec" setSpec
7270 testSpec " leqPair" leqPair
7371 testSpec " setPair" setPair
7472 testSpecNoShrink " listEmpty" listEmpty
75- -- TODO: quickcheck version
76- testSpecNoShrink " compositionalSpec" compositionalSpec
73+ testSpec " compositionalSpec" compositionalSpec
7774 testSpec " simplePairSpec" simplePairSpec
7875 testSpec " trickyCompositional" trickyCompositional
7976 testSpec " emptyListSpec" emptyListSpec
@@ -83,17 +80,18 @@ tests nightly =
8380 testSpec " fooSpec" fooSpec
8481 testSpec " mapElemSpec" mapElemSpec
8582 testSpec " mapElemKeySpec" mapElemKeySpec
86- -- TODO: double shrinking
83+ -- TODO: figure out why this doesn't shrink
8784 testSpecNoShrink " mapIsJust" mapIsJust
85+ -- TODO: figure out why this doesn't shrink
8886 testSpecNoShrink " intSpec" intSpec
89- testSpecNoShrink " mapPairSpec" mapPairSpec
87+ testSpec " mapPairSpec" mapPairSpec
88+ -- TODO: figure out why this doesn't shrink
9089 testSpecNoShrink " mapEmptyDomainSpec" mapEmptyDomainSpec
9190 -- TODO: this _can_ be shrunk, but it's incredibly expensive to do
9291 -- so and it's not obvious if there is a faster way without implementing
9392 -- more detailed shrinking of `SuspendedSpec`s
9493 testSpecNoShrink " setPairSpec" setPairSpec
95- -- TODO: quickcheck version
96- testSpecNoShrink " fixedSetSpec" fixedSetSpec
94+ testSpec " fixedSetSpec" fixedSetSpec
9795 testSpec " setOfPairLetSpec" setOfPairLetSpec
9896 testSpecNoShrink " emptyEitherSpec" emptyEitherSpec
9997 testSpecNoShrink " emptyEitherMemberSpec" emptyEitherMemberSpec
@@ -106,19 +104,19 @@ tests nightly =
106104 testSpec " maybeJustSetSpec" maybeJustSetSpec
107105 testSpec " weirdSetPairSpec" weirdSetPairSpec
108106 testSpec " knownDomainMap" knownDomainMap
109- -- TODO: figure out double-shrinking
107+ -- TODO: figure out why this doesn't shrink
110108 testSpecNoShrink " testRewriteSpec" testRewriteSpec
111109 testSpec " parallelLet" parallelLet
112110 testSpec " letExists" letExists
113111 testSpec " letExistsLet" letExistsLet
114112 testSpec " notSubset" notSubset
115113 testSpec " unionSized" unionSized
116- -- TODO: figure out double-shrinking
114+ -- TODO: figure out why this doesn't shrink
117115 testSpecNoShrink " dependencyWeirdness" dependencyWeirdness
118116 testSpec " foldTrueCases" foldTrueCases
119117 testSpec " foldSingleCase" foldSingleCase
120118 testSpec " listSumPair" (listSumPair @ Int )
121- -- TODO: figure out double-shrinking
119+ -- TODO: figure out why this doesn't shrink
122120 testSpecNoShrink " parallelLetPair" parallelLetPair
123121 testSpec " mapSizeConstrained" mapSizeConstrained
124122 testSpec " isAllZeroTree" isAllZeroTree
@@ -136,13 +134,12 @@ tests nightly =
136134 testSpec " sumRange" sumRange
137135 testSpec " sumListBad" sumListBad
138136 testSpec " listExistsUnfree" listExistsUnfree
139- -- TODO: turn this on when we bump quickcheck version
140- -- testSpec "listSumShort" listSumShort
137+ testSpec " listSumShort" listSumShort
141138 testSpec " existsUnfree" existsUnfree
142139 testSpec " appendSize" appendSize
143140 testSpecNoShrink " appendSingleton" appendSingleton
144141 testSpec " singletonSubset" singletonSubset
145- -- TODO: double shrinking
142+ -- TODO: figure out why this doesn't shrink
146143 testSpecNoShrink " reifyYucky" reifyYucky
147144 testSpec " fixedRange" fixedRange
148145 testSpec " rangeHint" rangeHint
@@ -467,6 +464,3 @@ foldWithSizeTests = do
467464 prop " something of size 2, can add to 0 in type with negative values." $
468465 testFoldSpec @ Int (between 2 2 ) (between (- 10 ) 10 ) (MemberSpec (pure 0 )) Succeed
469466 prop " TEST listSum" $ prop_constrained_satisfies_sound (listSum @ Int )
470-
471- -- TODO Needs to sample like this: OR [pick t c | t <- total, c <- count]
472- -- prop "count =0, total is 0,1,2" $ testFoldSpec @Int (between 0 1) evenSpec (between 0 2) Succeed
0 commit comments