summaryrefslogtreecommitdiff
path: root/chapter12/src/test/java
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-07-19 16:25:26 -0700
committerDibyendu Majumdar <dibyendumajumdar@users.noreply.github.com>2024-08-05 23:28:33 +0100
commitb071b6bd3d0884accb702a44bea6f37595dd2600 (patch)
treeaeb4182d28343e0bb8debad47901293a27549b1d /chapter12/src/test/java
parent834a3834800b3414250cab5dc63f3acf8ecc43ba (diff)
downloadSimple-b071b6bd3d0884accb702a44bea6f37595dd2600.tar.gz
Simple-b071b6bd3d0884accb702a44bea6f37595dd2600.zip
minimal empty test so "make" doesnt complain
Diffstat (limited to 'chapter12/src/test/java')
-rw-r--r--chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java b/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java
index d3615978..9c352533 100644
--- a/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java
+++ b/chapter12/src/test/java/com/seaofnodes/simple/Chapter12Test.java
@@ -8,5 +8,16 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class Chapter12Test {
+ // A placeholder test used to rapidly rotate through fuzzer produced issues
+ @Test
+ public void testFuzzer() {
+ Parser parser = new Parser(
+"""
+return 0;
+""");
+ StopNode stop = parser.parse(false).iterate(true);
+ assertEquals("return 0;", stop.toString());
+ assertEquals(0L, Evaluator.evaluate(stop, 0));
+ }
}