}
public void testGreaterThanOrEqualExpression() throws CompilerException {
assertParserOutput(
new ExpressionStatement(
new BinaryOperatorExpression(
new Identifier("foo"),
new Identifier("bar"),
Token.OPERATOR_GREATERTHANOREQUAL
)
),
"foo >= bar;"
);
assertParserOutput(
new ExpressionStatement(
new BinaryOperatorExpression(
new BinaryOperatorExpression(
new Identifier("foo"),
new Identifier("bar"),
Token.OPERATOR_GREATERTHANOREQUAL
),
new Identifier("baz"),
Token.OPERATOR_GREATERTHANOREQUAL
)
),
"foo >= bar >= baz;"
);
assertParserOutput(
new ExpressionStatement(
new BinaryOperatorExpression(
new Identifier("foo"),
new BinaryOperatorExpression(
new Identifier("bar"),
new NumberLiteral(1.0),
Token.OPERATOR_PLUS
),
Token.OPERATOR_GREATERTHANOREQUAL