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