Search in sources :

Example 1 with ADisjunctPredicate

use of de.be4.classicalb.core.parser.node.ADisjunctPredicate in project probparsers by bendisposto.

the class ASTPrologTest method testTrueFalse.

@Test
public void testTrueFalse() throws BCompoundException {
    checkPredicate("TRUE : BOOL", "member($,boolean_true($),bool_set($))");
    checkPredicate("FALSE : BOOL", "member($,boolean_false($),bool_set($))");
    final ADisjunctPredicate disjunction = new ADisjunctPredicate();
    disjunction.setLeft(new ATruthPredicate());
    disjunction.setRight(new AFalsityPredicate());
    checkAST(0, "disjunct($,truth($),falsity($))", disjunction);
}
Also used : ATruthPredicate(de.be4.classicalb.core.parser.node.ATruthPredicate) ADisjunctPredicate(de.be4.classicalb.core.parser.node.ADisjunctPredicate) AFalsityPredicate(de.be4.classicalb.core.parser.node.AFalsityPredicate) Test(org.junit.Test)

Aggregations

ADisjunctPredicate (de.be4.classicalb.core.parser.node.ADisjunctPredicate)1 AFalsityPredicate (de.be4.classicalb.core.parser.node.AFalsityPredicate)1 ATruthPredicate (de.be4.classicalb.core.parser.node.ATruthPredicate)1 Test (org.junit.Test)1