|
public void testPrefixDecrementExpression() throws CompilerException {
assertParserOutput(
new ExpressionStatement(
new IncrementExpression(
new Identifier("foo"), -1, false
)
),
"--foo;"
);
assertParserOutput(
new ExpressionStatement(
new IncrementExpression(
new IncrementExpression(
new Identifier("foo"), -1, true
), -1, false
)
),
"--foo--;"
);
assertParserOutput(
new ExpressionStatement(
new IncrementExpression(
new IncrementExpression(
new Identifier("foo"), -1, false
), -1, false
)
),
"----foo;"
);
|