@@ -57,21 +57,18 @@ testAll = hspec $ tests False
5757tests :: Bool -> Spec
5858tests nightly =
5959 describe " constrained" . modifyMaxSuccess (\ ms -> if nightly then ms * 10 else ms) $ do
60- -- TODO: double-shrinking
60+ -- TODO: figure out why this doesn't shrink
6161 testSpecNoShrink " reifiesMultiple" reifiesMultiple
6262 testSpec " assertReal" assertReal
6363 testSpecNoShrink " chooseBackwards" chooseBackwards
6464 testSpecNoShrink " chooseBackwards'" chooseBackwards'
65- -- TODO: turn this on again when QuickCheck version is bumped
66- -- testSpec "whenTrueExists" whenTrueExists
65+ testSpec " whenTrueExists" whenTrueExists
6766 testSpec " assertRealMultiple" assertRealMultiple
68- -- TODO: quickcheck version
69- testSpecNoShrink " setSpec" setSpec
67+ testSpec " setSpec" setSpec
7068 testSpec " leqPair" leqPair
7169 testSpec " setPair" setPair
7270 testSpecNoShrink " listEmpty" listEmpty
73- -- TODO: quickcheck version
74- testSpecNoShrink " compositionalSpec" compositionalSpec
71+ testSpec " compositionalSpec" compositionalSpec
7572 testSpec " simplePairSpec" simplePairSpec
7673 testSpec " trickyCompositional" trickyCompositional
7774 testSpec " emptyListSpec" emptyListSpec
@@ -81,17 +78,18 @@ tests nightly =
8178 testSpec " fooSpec" fooSpec
8279 testSpec " mapElemSpec" mapElemSpec
8380 testSpec " mapElemKeySpec" mapElemKeySpec
84- -- TODO: double shrinking
81+ -- TODO: figure out why this doesn't shrink
8582 testSpecNoShrink " mapIsJust" mapIsJust
83+ -- TODO: figure out why this doesn't shrink
8684 testSpecNoShrink " intSpec" intSpec
87- testSpecNoShrink " mapPairSpec" mapPairSpec
85+ testSpec " mapPairSpec" mapPairSpec
86+ -- TODO: figure out why this doesn't shrink
8887 testSpecNoShrink " mapEmptyDomainSpec" mapEmptyDomainSpec
8988 -- TODO: this _can_ be shrunk, but it's incredibly expensive to do
9089 -- so and it's not obvious if there is a faster way without implementing
9190 -- more detailed shrinking of `SuspendedSpec`s
9291 testSpecNoShrink " setPairSpec" setPairSpec
93- -- TODO: quickcheck version
94- testSpecNoShrink " fixedSetSpec" fixedSetSpec
92+ testSpec " fixedSetSpec" fixedSetSpec
9593 testSpec " setOfPairLetSpec" setOfPairLetSpec
9694 testSpecNoShrink " emptyEitherSpec" emptyEitherSpec
9795 testSpecNoShrink " emptyEitherMemberSpec" emptyEitherMemberSpec
@@ -104,19 +102,19 @@ tests nightly =
104102 testSpec " maybeJustSetSpec" maybeJustSetSpec
105103 testSpec " weirdSetPairSpec" weirdSetPairSpec
106104 testSpec " knownDomainMap" knownDomainMap
107- -- TODO: figure out double-shrinking
105+ -- TODO: figure out why this doesn't shrink
108106 testSpecNoShrink " testRewriteSpec" testRewriteSpec
109107 testSpec " parallelLet" parallelLet
110108 testSpec " letExists" letExists
111109 testSpec " letExistsLet" letExistsLet
112110 testSpec " notSubset" notSubset
113111 testSpec " unionSized" unionSized
114- -- TODO: figure out double-shrinking
112+ -- TODO: figure out why this doesn't shrink
115113 testSpecNoShrink " dependencyWeirdness" dependencyWeirdness
116114 testSpec " foldTrueCases" foldTrueCases
117115 testSpec " foldSingleCase" foldSingleCase
118116 testSpec " listSumPair" (listSumPair @ Int )
119- -- TODO: figure out double-shrinking
117+ -- TODO: figure out why this doesn't shrink
120118 testSpecNoShrink " parallelLetPair" parallelLetPair
121119 testSpec " mapSizeConstrained" mapSizeConstrained
122120 testSpec " isAllZeroTree" isAllZeroTree
@@ -134,13 +132,12 @@ tests nightly =
134132 testSpec " sumRange" sumRange
135133 testSpec " sumListBad" sumListBad
136134 testSpec " listExistsUnfree" listExistsUnfree
137- -- TODO: turn this on when we bump quickcheck version
138- -- testSpec "listSumShort" listSumShort
135+ testSpec " listSumShort" listSumShort
139136 testSpec " existsUnfree" existsUnfree
140137 testSpec " appendSize" appendSize
141138 testSpecNoShrink " appendSingleton" appendSingleton
142139 testSpec " singletonSubset" singletonSubset
143- -- TODO: double shrinking
140+ -- TODO: figure out why this doesn't shrink
144141 testSpecNoShrink " reifyYucky" reifyYucky
145142 testSpec " fixedRange" fixedRange
146143 testSpec " rangeHint" rangeHint
@@ -461,6 +458,3 @@ foldWithSizeTests = do
461458 prop " something of size 2, can add to 0 in type with negative values." $
462459 testFoldSpec @ Int (between 2 2 ) (between (- 10 ) 10 ) (MemberSpec (pure 0 )) Succeed
463460 prop " TEST listSum" $ prop_constrained_satisfies_sound (listSum @ Int )
464-
465- -- TODO Needs to sample like this: OR [pick t c | t <- total, c <- count]
466- -- prop "count =0, total is 0,1,2" $ testFoldSpec @Int (between 0 1) evenSpec (between 0 2) Succeed
0 commit comments