super(name);
}
public void testWhileStatement() throws CompilerException {
assertParserOutput(
new WhileStatement(
new BooleanLiteral(true),
new ExpressionStatement(
new Identifier("something")
)
),
"while (true) something;"
);
assertParserOutput(
new WhileStatement(
new BooleanLiteral(true),
new BlockStatement(
new Statement[] {
new ExpressionStatement(
new Identifier("something")