added test case for new comment

java11
simonkellet 2 years ago
parent d28b3c7403
commit cd280e3c4b
  1. 8
      Triangle.Compiler/src/test/java/triangle/syntacticAnalyser/TestScanner.java

@ -22,7 +22,7 @@ public class TestScanner {
@Test @Test
public void testHiNewComment() { public void testHiNewComment() {
compileExpectFailure("/hi-newcomment.tri"); compileExpectSuccess("/hi-newcomment.tri");
} }
@ -43,6 +43,12 @@ public class TestScanner {
compileExpectFailure("/repeatuntil.tri"); compileExpectFailure("/repeatuntil.tri");
} }
@Test
public void testAdd() {
//compileExpectFailure("/addd.tri"); //fail here!
compileExpectFailure("/add.tri");
}
private void compileExpectSuccess(String filename) { private void compileExpectSuccess(String filename) {