use of com.sri.ai.grinder.theory.tuple.rewriter.TupleDisequalitySimplifier in project aic-expresso by aic-sri-international.
the class TupleRewriterTest method testTupleDisEqualitySimplification.
@Test
public void testTupleDisEqualitySimplification() {
Simplifier tupleDisequalitySimplifier = new TupleDisequalitySimplifier();
Assert.assertEquals(parse("A1 != B1 or A2 != B2 or A3 != B3"), tupleDisequalitySimplifier.apply(parse("(A1, A2, A3) != (B1, B2, B3)"), context));
Expression expr = parse("(A1, A2) != (B1, B2, B3)");
Assert.assertTrue(expr == tupleDisequalitySimplifier.apply(expr, context));
expr = parse("A1 != B1");
Assert.assertTrue(expr == tupleDisequalitySimplifier.apply(expr, context));
}
Aggregations