Skip to content

Commit

Permalink
additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAlgehed committed May 3, 2024
1 parent 9d6b0a5 commit f8bdb43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/constrained-generators/src/Constrained/Examples/Basic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,9 @@ assertRealMultiple = constrained' $ \x y ->
, assert $ 11 <=. y
, assertReified (pair_ x y) $ uncurry (/=)
]

reifiesMultiple :: Specification BaseFn (Int, Int, Int)
reifiesMultiple = constrained' $ \x y z ->
[ reifies (x + y) z id
, x `dependsOn` y
]
1 change: 1 addition & 0 deletions libs/constrained-generators/test/Constrained/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ testAll = hspec tests
tests :: Spec
tests =
describe "constrained" $ do
testSpec "reifiesMultiple" reifiesMultiple
testSpec "assertReal" assertReal
testSpec "assertRealMultiple" assertRealMultiple
testSpec "setSpec" setSpec
Expand Down

0 comments on commit f8bdb43

Please sign in to comment.