use of de.be4.eventb.core.parser.node.AVariant in project probparsers by bendisposto.
the class LexerTest method testStringVariant.
@Test
public void testStringVariant() throws BException {
final Start rootNode = parseInput("machine Test\nvariant y-x\nend", false);
final AMachineParseUnit parseUnit = (AMachineParseUnit) rootNode.getPParseUnit();
final AVariant variantClause = (AVariant) parseUnit.getVariant();
assertEquals("y-x", variantClause.getExpression().getText());
}
use of de.be4.eventb.core.parser.node.AVariant in project probparsers by bendisposto.
the class LexerTest method testStringVariant.
@Test
public void testStringVariant() throws BException {
final Start rootNode = parseInput("machine Test\nvariant y-x\nend", false);
final AMachineParseUnit parseUnit = (AMachineParseUnit) rootNode.getPParseUnit();
final AVariant variantClause = (AVariant) parseUnit.getVariant();
assertEquals("y-x", variantClause.getExpression().getText());
}
Aggregations