new test
This commit is contained in:
@ -49,7 +49,8 @@ class LexerGrammarParserTest {
|
||||
"DeclarationAssignment.stups",
|
||||
"Expr.stups",
|
||||
"GeneralWhile.stups",
|
||||
"GeneralIfElse.stups"})
|
||||
"GeneralIfElse.stups",
|
||||
"Println.stups"})
|
||||
void testCorrectPrograms(String prog) {
|
||||
final Lexer lex = getLexer(prog);
|
||||
|
||||
|
15
src/test/resources/examplePrograms/Println.stups
Normal file
15
src/test/resources/examplePrograms/Println.stups
Normal file
@ -0,0 +1,15 @@
|
||||
class MyClass {
|
||||
public static void main(String[] args) {
|
||||
int x = 1;
|
||||
String y = "Hey";
|
||||
boolean z = false;
|
||||
|
||||
System.out.println("Hey");
|
||||
System.out.println(true);
|
||||
System.out.println(5);
|
||||
|
||||
System.out.println(x);
|
||||
System.out.println(y);
|
||||
System.out.println(z);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user