| }
public void testLogicalOrExpression() throws CompilerException {
assertParserOutput(
new ExpressionStatement(
new LogicalOrExpression(
new Identifier("foo"),
new Identifier("bar")
)
),
"foo || bar;"
);
assertParserOutput(
new ExpressionStatement(
new LogicalOrExpression(
new LogicalOrExpression(
new Identifier("foo"),
new Identifier("bar")
),
new Identifier("baz")
)
),
"foo || bar || baz;"
);
assertParserOutput(
new ExpressionStatement(
new LogicalOrExpression(
new Identifier("foo"),
new BinaryOperatorExpression(
new Identifier("bar"),
new NumberLiteral(1.0),
Token.OPERATOR_EQUALEQUAL
|