summaryrefslogtreecommitdiff
path: root/chapter17/src/test/java/com/seaofnodes
diff options
context:
space:
mode:
Diffstat (limited to 'chapter17/src/test/java/com/seaofnodes')
-rw-r--r--chapter17/src/test/java/com/seaofnodes/simple/Chapter17Test.java8
1 files changed, 2 insertions, 6 deletions
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() {