diff options
Diffstat (limited to 'chapter01/src/test/java/com/seaofnodes')
| -rw-r--r-- | chapter01/src/test/java/com/seaofnodes/simple/Chapter01Test.java (renamed from chapter01/src/test/java/com/seaofnodes/simple/ParserTest.java) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter01/src/test/java/com/seaofnodes/simple/ParserTest.java b/chapter01/src/test/java/com/seaofnodes/simple/Chapter01Test.java index 887f63b8..14c22437 100644 --- a/chapter01/src/test/java/com/seaofnodes/simple/ParserTest.java +++ b/chapter01/src/test/java/com/seaofnodes/simple/Chapter01Test.java @@ -4,7 +4,7 @@ import com.seaofnodes.simple.node.*; import org.junit.Test; import static org.junit.Assert.*; -public class ParserTest { +public class Chapter01Test { @Test public void testSimpleProgram() { @@ -54,7 +54,7 @@ public class ParserTest { @Test public void testBad3() { try { new Parser().parse("return --12;"); } - catch( RuntimeException e ) { assertEquals("syntax error, expected integer literal: --",e.getMessage()); } + catch( RuntimeException e ) { assertEquals("syntax error, expected integer literal: -",e.getMessage()); } } @Test |
