diff options
| author | Cliff Click <cliffc@acm.org> | 2024-10-21 09:25:15 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2024-11-22 15:23:43 -0800 |
| commit | b0e1da2a7d0d39347e247d9fbda924b720d4b0a0 (patch) | |
| tree | f40907ed72bdffff46e2fd6c79b47e8d672803fb /src/test/java/com/seaofnodes/simple/Chapter04Test.java | |
| parent | 4b24919a2cd06dd5debcc0322cbeb314d77aaba1 (diff) | |
| download | Simple-linear-chapter17.tar.gz Simple-linear-chapter17.zip | |
Chapter 17: Syntax Sugarlinear-chapter17
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/Chapter04Test.java')
| -rw-r--r-- | src/test/java/com/seaofnodes/simple/Chapter04Test.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/seaofnodes/simple/Chapter04Test.java b/src/test/java/com/seaofnodes/simple/Chapter04Test.java index 70f38dd6..24612fee 100644 --- a/src/test/java/com/seaofnodes/simple/Chapter04Test.java +++ b/src/test/java/com/seaofnodes/simple/Chapter04Test.java @@ -96,14 +96,14 @@ public class Chapter04Test { @Test public void testBug1() { - Parser parser = new Parser("int a=arg+1; int b=a; b=1; return a+2; "); + Parser parser = new Parser("int a=arg+1; int !b=a; b=1; return a+2; "); StopNode ret = parser.parse(); assertEquals("return (arg+3);", ret.print()); } @Test public void testBug2() { - Parser parser = new Parser("int a=arg+1; a=a; return a; "); + Parser parser = new Parser("int !a=arg+1; a=a; return a; "); StopNode ret = parser.parse(); assertEquals("return (arg+1);", ret.print()); } |
