try to fix unit test.
We do not yet exaclty know how much Yices2 allows to do after closing a context.
So ... lets assume nothing.
@@ -92,6 +92,14 @@ public class SolverContextTest extends SolverBasedTest0 {
.that(solverToUse())
.isNotEqualTo(Solvers.MATHSAT5);
+ // Yices2 allows nothing, lets abort here.
+ assume()
+ .withMessage(
+ "Solver %s does not support to access formulae after closing the context",
+ solverToUse())
+ .that(solverToUse())
+ .isNotEqualTo(Solvers.YICES2);
+
assertThat(bmgr.isTrue(term)).isFalse();
assertThat(bmgr.isFalse(term)).isFalse();
assertThat(bmgr.isTrue(termTrue)).isTrue();
@@ -105,14 +113,6 @@ public class SolverContextTest extends SolverBasedTest0 {
.that(solverToUse())
.isNotEqualTo(Solvers.Z3);
- // Yices2 allows simple checks (comparison against constants like TRUE/FALSE), lets abort here.
- assume()
- .withMessage(
- "Solver %s does not support to access formulae after closing the context",
- solverToUse())
- .that(solverToUse())
- .isNotEqualTo(Solvers.YICES2);
-
// try to access some data about formulae and managers
assertThat(term.toString()).isEqualTo("variable");
assertThat(term.hashCode()).isEqualTo(hash);
