From aced58bb64ae52f82276ac48ff28737d54130223 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Fri, 26 Jul 2024 13:49:33 +0300 Subject: A series of minor fuzzer bugs --- .../test/java/com/seaofnodes/simple/Chapter12Test.java | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'chapter12/src/test') diff --git a/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java b/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java index 2eeccba9..92ed9031 100644 --- a/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java +++ b/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java @@ -13,21 +13,11 @@ public class Chapter12Test { public void testJig() { Parser parser = new Parser( """ -struct s0 { - int v0; -} -s0? fIflMOdp; -while(1) { - if(fIflMOdp){ - fIflMOdp.v0=-fIflMOdp.v0; - continue; - } - break; -} +return 3.14 """); StopNode stop = parser.parse(false).iterate(false); - assertEquals("return 0;", stop.toString()); - assertEquals(0L, Evaluator.evaluate(stop, 0)); + assertEquals("return 3.14;", stop.toString()); + assertEquals(3.14, Evaluator.evaluate(stop, 0)); } @Test -- cgit v1.2.3