summaryrefslogtreecommitdiff
path: root/chapter05/src/test/java/com/seaofnodes
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/src/test/java/com/seaofnodes')
-rw-r--r--chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java1
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());
}