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