summaryrefslogtreecommitdiff
path: root/chapter23/src/test/java/com/seaofnodes
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2025-08-13 13:25:24 -0700
committerCliff Click <cliffc@acm.org>2025-08-13 13:25:24 -0700
commitcf5be6998b26723ae29ab1edab84d32b0702182d (patch)
tree7b8eee33a7681d60f25cd93b997d6a39bf1baba5 /chapter23/src/test/java/com/seaofnodes
parent6a9a508d1809753ec5d41a5ced3f505384f1fe07 (diff)
downloadSimple-cf5be6998b26723ae29ab1edab84d32b0702182d.tar.gz
Simple-cf5be6998b26723ae29ab1edab84d32b0702182d.zip
TypeAnalysis continued
Diffstat (limited to 'chapter23/src/test/java/com/seaofnodes')
-rw-r--r--chapter23/src/test/java/com/seaofnodes/simple/Chapter23Test.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/chapter23/src/test/java/com/seaofnodes/simple/Chapter23Test.java b/chapter23/src/test/java/com/seaofnodes/simple/Chapter23Test.java
index ec38bd89..08288b4d 100644
--- a/chapter23/src/test/java/com/seaofnodes/simple/Chapter23Test.java
+++ b/chapter23/src/test/java/com/seaofnodes/simple/Chapter23Test.java
@@ -14,11 +14,12 @@ public class Chapter23Test {
@Test
public void testJig() throws IOException {
- //String src = Files.readString(Path.of("src/test/java/com/seaofnodes/simple/progs/jig.smp"));
- String src = Files.readString(Path.of("docs/examples/BubbleSort.smp"));
- testCPU(src,"x86_64_v2", "Win64" ,-1,null);
- testCPU(src,"riscv" , "SystemV",-1,null);
- testCPU(src,"arm" , "SystemV",-1,null);
+ String src =
+"""
+var apply = { i64 x, { i64 -> u32 } fcn ->
+ return fcn(x);
+}
+""";
}
@Test