diff options
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/Chapter02Test.java')
| -rw-r--r-- | src/test/java/com/seaofnodes/simple/Chapter02Test.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/seaofnodes/simple/Chapter02Test.java b/src/test/java/com/seaofnodes/simple/Chapter02Test.java index 324ebf41..d8607c32 100644 --- a/src/test/java/com/seaofnodes/simple/Chapter02Test.java +++ b/src/test/java/com/seaofnodes/simple/Chapter02Test.java @@ -11,8 +11,8 @@ public class Chapter02Test { @Test public void testParseGrammar() { CodeGen code = new CodeGen("return 1+2*3+-5;"); - code.parse(true); // Disable peepholes - assertEquals("return ((1+(2*3))+(-5));", code.print()); + code.parse(); // No more disable peepholes + assertEquals("return 2;", code.print()); } @Test |
