use of su.litvak.chromecast.api.v2.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testDifference.
@Test
public void testDifference() {
String formula = "{1,2}\\{2,3} = {1}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.SATISFIABLE, check);
}
use of su.litvak.chromecast.api.v2.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testNoProperSubset3.
@Test
public void testNoProperSubset3() {
String formula = "{1} /<<: {2,3}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.SATISFIABLE, check);
}
use of su.litvak.chromecast.api.v2.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testUnion.
@Test
public void testUnion() {
String formula = "{1,2} \\/ {2,3} = {2}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.UNSATISFIABLE, check);
}
use of su.litvak.chromecast.api.v2.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testStrictSubset3.
@Test
public void testStrictSubset3() {
String formula = "{1} <<: {1,1}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.UNSATISFIABLE, check);
}
use of su.litvak.chromecast.api.v2.Status in project bmoth by hhu-stups.
the class SetFormulaEvaluationTest method testNotBelonging2.
@Test
public void testNotBelonging2() {
String formula = "{1} /: {{1}}";
BoolExpr constraint = translatePredicate(formula, z3Context);
z3Solver.add(constraint);
Status check = z3Solver.check();
assertEquals(Status.UNSATISFIABLE, check);
}
Aggregations