Skip to content

Commit

Permalink
Adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Nov 6, 2023
1 parent 86f8f33 commit 9cbf833
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
42 changes: 42 additions & 0 deletions tests/dune.inc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/smtlib/testfile-get-assignment1.err.dolmen.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(error "No model produced, cannot execute get-assignment.")
3 changes: 3 additions & 0 deletions tests/smtlib/testfile-get-assignment1.err.dolmen.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(set-logic ALL)
; The next instruction should fail because we did not generate a model
(get-assignment)
6 changes: 6 additions & 0 deletions tests/smtlib/testfile-get-assignment2.err.dolmen.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

unknown
(
(define-fun x () Int 0)
)
(error "Produce assignments disabled; add (set-option :produce-assignments true)")
8 changes: 8 additions & 0 deletions tests/smtlib/testfile-get-assignment2.err.dolmen.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(set-logic ALL)
(set-option :produce-models true)
(declare-const x Int)
(assert (! (= x 0) :named foo))
(check-sat)
(get-model)
; The next instruction should fail because we did not activate the option
(get-assignment)

0 comments on commit 9cbf833

Please sign in to comment.