summaryrefslogtreecommitdiff
path: root/chapter12/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'chapter12/src/test')
-rw-r--r--chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java b/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java
index 253a61f0..af8fdfe9 100644
--- a/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java
+++ b/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java
@@ -13,15 +13,10 @@ public class Chapter12Test {
public void testJig() {
Parser parser = new Parser(
"""
-flt x = 3.14;
-while( arg ) {
- x = 1;
- arg = arg-1;
-}
-return x;
+return 3.14;
""");
StopNode stop = parser.parse(false).iterate(false);
- assertEquals("return Phi(Loop9,3.14,1.0);", stop.toString());
+ assertEquals("return 3.14;", stop.toString());
assertEquals(3.14, Evaluator.evaluate(stop, 0));
}