summaryrefslogtreecommitdiff
path: root/chapter10/src/test/java/com/seaofnodes
diff options
context:
space:
mode:
Diffstat (limited to 'chapter10/src/test/java/com/seaofnodes')
-rw-r--r--chapter10/src/test/java/com/seaofnodes/simple/Chapter04Test.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/chapter10/src/test/java/com/seaofnodes/simple/Chapter04Test.java b/chapter10/src/test/java/com/seaofnodes/simple/Chapter04Test.java
index e23a10b1..2e2abb25 100644
--- a/chapter10/src/test/java/com/seaofnodes/simple/Chapter04Test.java
+++ b/chapter10/src/test/java/com/seaofnodes/simple/Chapter04Test.java
@@ -125,4 +125,10 @@ public class Chapter04Test {
assertEquals("return (-arg);", ret.print());
}
+ @Test
+ public void testBug5() {
+ Parser parser = new Parser("return arg--2;");
+ StopNode ret = parser.parse();
+ assertEquals("return (arg--2);", ret.print());
+ }
}