summaryrefslogtreecommitdiff
path: root/test/java/Combination.java
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-06-04 17:27:33 -0700
committerGitHub <noreply@github.com>2020-06-04 17:27:33 -0700
commit67678d6c8a28e71483d8171311725e9e1a86775c (patch)
treef9c4d9b0bfda35d0fea98690849db61c902248be /test/java/Combination.java
parent6c608754e8058098e410e208d0b6cc0f586b79ca (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/Combination.java')
-rw-r--r--test/java/Combination.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/java/Combination.java b/test/java/Combination.java
index b710bf0d9..ead3fd617 100644
--- a/test/java/Combination.java
+++ b/test/java/Combination.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 Combination {
static {
System.loadLibrary("cvc4jni");
@@ -78,10 +78,8 @@ public class Combination {
p_f_y); // p(f(y))
smt.assertFormula(assumptions);
- assertEquals(
- Result.Validity.VALID,
- smt.query(em.mkExpr(Kind.DISTINCT, x, y)).isValid()
- );
+ assertEquals(Result.Entailment.ENTAILED,
+ smt.checkEntailed(em.mkExpr(Kind.DISTINCT, x, y)).isEntailed());
assertEquals(
Result.Sat.SAT,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback