Skip to content

Commit c0f96f9

Browse files
simplify
1 parent 9bcce2e commit c0f96f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Constrained/Spec/Map.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ instance
185185
]
186186
n <- genFromSpecT size'
187187
let go 0 _ m = pure m
188-
-- go n' ((\ s -> trace (show s) s) -> kvs') m = do
189188
go n' kvs' m = do
190189
mkv <- inspect $ genFromSpecT kvs'
191190
case mkv of

src/Constrained/Test.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ prop_constrained_satisfies_sound spec = prop_sound (constrained $ \a -> satisfie
7575
-- | Check that explanations don't immediately ruin soundness
7676
prop_constrained_explained :: HasSpec a => Specification a -> QC.Property
7777
prop_constrained_explained spec =
78-
QC.forAll QC.arbitrary $ \es ->
79-
prop_sound $ constrained $ \x -> Explain es $ x `satisfies` spec
78+
let es = NE.singleton "Dummy explanation"
79+
in prop_sound $ constrained $ \x -> Explain es $ x `satisfies` spec
8080

8181
-- | `prop_complete ps` assumes that `ps` is satisfiable and checks that it doesn't crash
8282
prop_complete :: HasSpec a => Specification a -> QC.Property

test/Constrained/Tests.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ tests nightly =
205205
testSpec "composeEvenSpec" composeEvenSpec
206206
testSpec "oddSpec" oddSpec
207207
testSpec "composeOddSpec" composeOddSpec
208+
testSpec "keysExample" keysExample
208209

209210
negativeTests :: Spec
210211
negativeTests =

0 commit comments

Comments
 (0)