public void testMultiplicative() { expr = (ASBinaryExpression) fact.newExpression("1 * 2 * 2"); Expression left = fact.newIntegerLiteral(1); expr.setLeftSubexpression(left); }
public void testAdditive() { expr = (ASBinaryExpression) fact.newExpression("1 + 2 + 2"); Expression left = fact.newIntegerLiteral(1); expr.setLeftSubexpression(left); }