added test case for new comment
This commit is contained in:
parent
d28b3c7403
commit
cd280e3c4b
@ -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) {
|
||||||
|
Reference in New Issue
Block a user