diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2020-06-04 17:27:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 17:27:33 -0700 |
commit | 67678d6c8a28e71483d8171311725e9e1a86775c (patch) | |
tree | f9c4d9b0bfda35d0fea98690849db61c902248be /test/java/LinearArith.java | |
parent | 6c608754e8058098e410e208d0b6cc0f586b79ca (diff) |
Update Java tests to match changes in API (#4535)
Commit cfeaf40ed6a9d4d7fec925352e30d2470a1ca567 renamed
`Result::Validity` and `SmtEngine::query()` to `Result::Entailment` and
`SmtEngine::checkEntailed()`, respectively. The commit did not update
the Java tests which lead to issues in debug builds with Java bindings.
The commit also adds a corresponding `NEWS` entry.
Diffstat (limited to 'test/java/LinearArith.java')
-rw-r--r-- | test/java/LinearArith.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/java/LinearArith.java b/test/java/LinearArith.java index 8f90b4a6d..5056b7fc6 100644 --- a/test/java/LinearArith.java +++ b/test/java/LinearArith.java @@ -16,11 +16,11 @@ **/ import static org.junit.Assert.assertEquals; + +import edu.stanford.CVC4.*; import org.junit.Before; import org.junit.Test; -import edu.nyu.acsys.CVC4.*; - public class LinearArith { static { System.loadLibrary("cvc4jni"); @@ -69,10 +69,8 @@ public class LinearArith { smt.push(); Expr diff_leq_two_thirds = em.mkExpr(Kind.LEQ, diff, two_thirds); - assertEquals( - Result.Validity.VALID, - smt.query(diff_leq_two_thirds).isValid() - ); + assertEquals(Result.Entailment.ENTAILED, + smt.checkEntailed(diff_leq_two_thirds).isEntailed()); smt.pop(); |