Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt tests for simplify/solve-eqs tactic #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/Z3/Base/Spec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -541,5 +541,5 @@ spec = around withContext $ do
simplify <- Z3.mkTactic ctx "solve-eqs"
tactic <- Z3.repeatTactic ctx simplify 10
Z3.applyResultToString ctx =<< Z3.applyTactic ctx tactic goal)
`shouldReturn` "(goals\n(goal\n (or (not (<= (- 2.0) y)) (not (<= y (- 2.0))))\n (not (<= 0.0 y)))\n)"
`shouldReturn` "(goals\n(goal\n (or (not (<= 0.0 x)) (not (<= x 0.0)))\n (not (<= 2.0 x)))\n)"

2 changes: 1 addition & 1 deletion test/Z3/Tutorial.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec = do
describe "Section: Strategies" $ do
describe "Section: Introduction" $ do
it "Apply simplify and solve-eq tactics" $
Z3.Monad.evalZ3 simplifySolveEqs `shouldReturn` "(goals\n(goal\n (not (<= y (- 2.0)))\n (not (<= y 0.0)))\n)"
Z3.Monad.evalZ3 simplifySolveEqs `shouldReturn` "(goals\n(goal\n (not (<= x 0.0))\n (not (<= x 2.0)))\n)"
it "Apply split-clause tactic" $
Z3.Monad.evalZ3 applySplitClause `shouldReturn` "(goals\n(goal\n (< x 0.0)\n (= x (+ y 1.0))\n (< y 0.0))\n(goal\n (> x 0.0)\n (= x (+ y 1.0))\n (< y 0.0))\n)"

Expand Down