diff options
| author | Cliff Click <cliffc@acm.org> | 2026-09-27 09:09:23 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-09-27 09:09:23 -0700 |
| commit | 3d226b49e1cd23b41fd9baf3917f751973c1ad11 (patch) | |
| tree | 5c59f2b2de102c1089e71e29f59c71357d3b5512 /chapter04/src/test/java | |
| parent | 5f85f435aeece40e2c0770f89d7642f9af718531 (diff) | |
| download | Simple-3d226b49e1cd23b41fd9baf3917f751973c1ad11.tar.gz Simple-3d226b49e1cd23b41fd9baf3917f751973c1ad11.zip | |
minor fixes
Fix CI build
Backport ch 23 fix to ch 22.
Diffstat (limited to 'chapter04/src/test/java')
| -rw-r--r-- | chapter04/src/test/java/com/seaofnodes/simple/Chapter03Test.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/chapter04/src/test/java/com/seaofnodes/simple/Chapter03Test.java b/chapter04/src/test/java/com/seaofnodes/simple/Chapter03Test.java index 38c9c00d..46b1ca33 100644 --- a/chapter04/src/test/java/com/seaofnodes/simple/Chapter03Test.java +++ b/chapter04/src/test/java/com/seaofnodes/simple/Chapter03Test.java @@ -30,15 +30,6 @@ public class Chapter03Test { } @Test - public void testVarScopeNoPeephole() { - Parser parser = new Parser("int a=1; int b=2; int c=0; { int b=3; c=a+b; } return c;"); - Node._disablePeephole = true; - ReturnNode ret = parser.parse(); - Node._disablePeephole = false; - assertEquals("return (1+3);", ret.print()); - } - - @Test public void testVarDist() { Parser parser = new Parser("int x0=1; int y0=2; int x1=3; int y1=4; return (x0-x1)*(x0-x1) + (y0-y1)*(y0-y1);"); ReturnNode ret = parser.parse(); |
