Skip to content

Commit

Permalink
Update property tests to use RecursionDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieBosio committed May 2, 2024
1 parent d7ba5d9 commit 6107916
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/PropertyCheckerTests.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module PropertyCheckerTests where

import Core.Syntax
import Validation.Formula (defaultRecDepth)
import Validation.PropertyChecker

import Test.Tasty
Expand All @@ -20,15 +21,15 @@ simple =
-- Helpers
satisfiable :: Term Type -> Assertion
satisfiable prop =
do let f = generateFormula End prop
do let f = generateFormula defaultRecDepth End prop
(ThmResult result) <- prove f
case result of
Unsatisfiable _ _ -> return ()
_ -> assertFailure "Should be satisfiable."

unsatisfiable :: Term Type -> Assertion
unsatisfiable prop =
do let f = generateFormula End prop
do let f = generateFormula defaultRecDepth End prop
(ThmResult result) <- prove f
case result of
Satisfiable _ _ -> return ()
Expand Down

0 comments on commit 6107916

Please sign in to comment.