use of de.be4.eventb.core.parser.node.PAxiom in project probparsers by bendisposto.
the class TheoriesIssuesTest method testCommentPredicates1.
@Test
public void testCommentPredicates1() throws Exception {
final Start rootNode = parseInput("context C4 \naxioms\n@axm2 {1↦1,2↦2} = seqAppend({1↦1},2)\nend", false);
final AContextParseUnit parseUnit = (AContextParseUnit) rootNode.getPParseUnit();
final LinkedList<PAxiom> axioms = parseUnit.getAxioms();
final AAxiom axiom = (AAxiom) axioms.get(0);
assertEquals("{1↦1,2↦2} = seqAppend({1↦1},2)", axiom.getPredicate().getText());
}
use of de.be4.eventb.core.parser.node.PAxiom in project probparsers by bendisposto.
the class TheoriesIssuesTest method testCommentPredicates1.
@Test
public void testCommentPredicates1() throws Exception {
final Start rootNode = parseInput("context C4 \naxioms\n@axm2 {1↦1,2↦2} = seqAppend({1↦1},2)\nend", false);
final AContextParseUnit parseUnit = (AContextParseUnit) rootNode.getPParseUnit();
final LinkedList<PAxiom> axioms = parseUnit.getAxioms();
final AAxiom axiom = (AAxiom) axioms.get(0);
assertEquals("{1↦1,2↦2} = seqAppend({1↦1},2)", axiom.getPredicate().getText());
}
Aggregations