@@ -59,21 +59,18 @@ testAll = hspec $ tests False
59
59
tests :: Bool -> Spec
60
60
tests nightly =
61
61
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
63
63
testSpecNoShrink " reifiesMultiple" reifiesMultiple
64
64
testSpec " assertReal" assertReal
65
65
testSpecNoShrink " chooseBackwards" chooseBackwards
66
66
testSpecNoShrink " chooseBackwards'" chooseBackwards'
67
- -- TODO: turn this on again when QuickCheck version is bumped
68
- -- testSpec "whenTrueExists" whenTrueExists
67
+ testSpec " whenTrueExists" whenTrueExists
69
68
testSpec " assertRealMultiple" assertRealMultiple
70
- -- TODO: quickcheck version
71
- testSpecNoShrink " setSpec" setSpec
69
+ testSpec " setSpec" setSpec
72
70
testSpec " leqPair" leqPair
73
71
testSpec " setPair" setPair
74
72
testSpecNoShrink " listEmpty" listEmpty
75
- -- TODO: quickcheck version
76
- testSpecNoShrink " compositionalSpec" compositionalSpec
73
+ testSpec " compositionalSpec" compositionalSpec
77
74
testSpec " simplePairSpec" simplePairSpec
78
75
testSpec " trickyCompositional" trickyCompositional
79
76
testSpec " emptyListSpec" emptyListSpec
@@ -83,18 +80,19 @@ tests nightly =
83
80
testSpec " fooSpec" fooSpec
84
81
testSpec " mapElemSpec" mapElemSpec
85
82
testSpec " mapElemKeySpec" mapElemKeySpec
86
- -- TODO: double shrinking
83
+ -- TODO: figure out why this doesn't shrink
87
84
testSpecNoShrink " mapIsJust" mapIsJust
88
85
testSpecNoShrink " eitherKeys" eitherKeys
86
+ -- TODO: figure out why this doesn't shrink
89
87
testSpecNoShrink " intSpec" intSpec
90
- testSpecNoShrink " mapPairSpec" mapPairSpec
88
+ testSpec " mapPairSpec" mapPairSpec
89
+ -- TODO: figure out why this doesn't shrink
91
90
testSpecNoShrink " mapEmptyDomainSpec" mapEmptyDomainSpec
92
91
-- TODO: this _can_ be shrunk, but it's incredibly expensive to do
93
92
-- so and it's not obvious if there is a faster way without implementing
94
93
-- more detailed shrinking of `SuspendedSpec`s
95
94
testSpecNoShrink " setPairSpec" setPairSpec
96
- -- TODO: quickcheck version
97
- testSpecNoShrink " fixedSetSpec" fixedSetSpec
95
+ testSpec " fixedSetSpec" fixedSetSpec
98
96
testSpec " setOfPairLetSpec" setOfPairLetSpec
99
97
testSpecNoShrink " emptyEitherSpec" emptyEitherSpec
100
98
testSpecNoShrink " emptyEitherMemberSpec" emptyEitherMemberSpec
@@ -107,19 +105,19 @@ tests nightly =
107
105
testSpec " maybeJustSetSpec" maybeJustSetSpec
108
106
testSpec " weirdSetPairSpec" weirdSetPairSpec
109
107
testSpec " knownDomainMap" knownDomainMap
110
- -- TODO: figure out double-shrinking
108
+ -- TODO: figure out why this doesn't shrink
111
109
testSpecNoShrink " testRewriteSpec" testRewriteSpec
112
110
testSpec " parallelLet" parallelLet
113
111
testSpec " letExists" letExists
114
112
testSpec " letExistsLet" letExistsLet
115
113
testSpec " notSubset" notSubset
116
114
testSpec " unionSized" unionSized
117
- -- TODO: figure out double-shrinking
115
+ -- TODO: figure out why this doesn't shrink
118
116
testSpecNoShrink " dependencyWeirdness" dependencyWeirdness
119
117
testSpec " foldTrueCases" foldTrueCases
120
118
testSpec " foldSingleCase" foldSingleCase
121
119
testSpec " listSumPair" (listSumPair @ Int )
122
- -- TODO: figure out double-shrinking
120
+ -- TODO: figure out why this doesn't shrink
123
121
testSpecNoShrink " parallelLetPair" parallelLetPair
124
122
testSpec " mapSizeConstrained" mapSizeConstrained
125
123
testSpec " isAllZeroTree" isAllZeroTree
@@ -137,13 +135,12 @@ tests nightly =
137
135
testSpec " sumRange" sumRange
138
136
testSpec " sumListBad" sumListBad
139
137
testSpec " listExistsUnfree" listExistsUnfree
140
- -- TODO: turn this on when we bump quickcheck version
141
- -- testSpec "listSumShort" listSumShort
138
+ testSpec " listSumShort" listSumShort
142
139
testSpec " existsUnfree" existsUnfree
143
140
testSpec " appendSize" appendSize
144
141
testSpecNoShrink " appendSingleton" appendSingleton
145
142
testSpec " singletonSubset" singletonSubset
146
- -- TODO: double shrinking
143
+ -- TODO: figure out why this doesn't shrink
147
144
testSpecNoShrink " reifyYucky" reifyYucky
148
145
testSpec " fixedRange" fixedRange
149
146
testSpec " rangeHint" rangeHint
@@ -470,6 +467,3 @@ foldWithSizeTests = do
470
467
prop " something of size 2, can add to 0 in type with negative values." $
471
468
testFoldSpec @ Int (between 2 2 ) (between (- 10 ) 10 ) (MemberSpec (pure 0 )) Succeed
472
469
prop " TEST listSum" $ prop_constrained_satisfies_sound (listSum @ Int )
473
-
474
- -- TODO Needs to sample like this: OR [pick t c | t <- total, c <- count]
475
- -- prop "count =0, total is 0,1,2" $ testFoldSpec @Int (between 0 1) evenSpec (between 0 2) Succeed
0 commit comments