Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Nov 28, 2023
1 parent c3493ef commit 5259187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/cram.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ combinations of produce-models et al.

First, if (get-model) is called outside the SAT mode, we should fail.
$ echo '(get-model)' | alt-ergo -i smtlib2 -o smtlib2 --continue-on-error 2> /dev/null
(error "Invalid action during mode Start: Command get-model")
(error "Invalid action during Start mode: Command get-model")


$ echo '(set-logic ALL)(get-model)' | alt-ergo -i smtlib2 -o smtlib2 --continue-on-error 2> /dev/null
(error "Invalid action during mode Assert: Command get-model")
(error "Invalid action during Assert mode: Command get-model")

$ echo '(set-logic ALL)(assert false)(check-sat)(get-model)' | alt-ergo -i smtlib2 -o smtlib2 --continue-on-error 2> /dev/null

unsat
(error "Invalid action during mode Unsat: Command get-model")
(error "Invalid action during Unsat mode: Command get-model")

Then, if model generation is not enabled, we should error out when a
`(get-model)` statement is issued:
Expand Down
2 changes: 1 addition & 1 deletion tests/smtlib/testfile-steps-bound1.dolmen.err.expected
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(error "Invalid action during mode Assert: Set option steps_bound")
(error "Invalid action during Assert mode: Set option steps_bound")

0 comments on commit 5259187

Please sign in to comment.