diff options
Diffstat (limited to 'chapter05')
| -rw-r--r-- | chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java b/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java index ab956e9f..5ac309f3 100644 --- a/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java +++ b/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java @@ -301,6 +301,7 @@ return c; public void testSelfAssign() { try { new Parser("int a=a; return a;").parse(); + fail(); } catch( RuntimeException e ) { assertEquals("Undefined name 'a'",e.getMessage()); } |
