From 37d9ba79ad9eb4eadd3b0fd567eb846cda4bfeed Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Fri, 15 Nov 2024 15:12:18 -0800 Subject: Stronger requirement on new type name --- chapter17/src/test/java/com/seaofnodes/simple/Chapter17Test.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'chapter17/src/test') diff --git a/chapter17/src/test/java/com/seaofnodes/simple/Chapter17Test.java b/chapter17/src/test/java/com/seaofnodes/simple/Chapter17Test.java index 44538965..7dc2b0c4 100644 --- a/chapter17/src/test/java/com/seaofnodes/simple/Chapter17Test.java +++ b/chapter17/src/test/java/com/seaofnodes/simple/Chapter17Test.java @@ -12,18 +12,14 @@ public class Chapter17Test { @Test public void testJig() { Parser parser = new Parser(""" -struct A { int i; }; -A! a = new A; -a.i=a; -a.i=2; -return a; - //return 3.14; +return 3.14; """); StopNode stop = parser.parse().iterate(); assertEquals("return 3.14;", stop.toString()); assertEquals(3.14, Evaluator.evaluate(stop, 0)); } + // --------------------------------------------------------------- @Test public void testInc0() { -- cgit v1.2.3