aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-24 23:01:33 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-24 23:06:29 +0100
commit5e15348d603b824f7d8725cb33852881294935ab (patch)
treef4c2a17a7a3d18c687c27a16802a9951925bc8fb /src/test/java
parent812f1c44f064c797687e739b8c722d9f528ecef6 (diff)
Add WasmExpression
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java b/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java
index 29c0feba..7cf142a4 100644
--- a/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java
+++ b/src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java
@@ -2,6 +2,7 @@ package org.shedlang.compiler.backends.wasm.structure;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
+import org.shedlang.compiler.backends.wasm.structure.ast.instructions.WasmExpression;
import org.shedlang.compiler.backends.wasm.structure.ast.instructions.WasmI32Const;
import org.shedlang.compiler.backends.wasm.structure.ast.instructions.WasmI64Const;
import org.shedlang.compiler.backends.wasm.structure.ast.modules.*;
@@ -55,7 +56,7 @@ public class WasmBinaryFormatModuleTests {
new WasmLocal("localB", WasmValueType.F64)
),
List.of(WasmValueType.I32),
- List.of(new WasmI32Const(0))
+ new WasmExpression(List.of(new WasmI32Const(0)))
))
.addFunction(new WasmFunction(
"f2",
@@ -66,7 +67,7 @@ public class WasmBinaryFormatModuleTests {
new WasmLocal("localA", WasmValueType.I64)
),
List.of(WasmValueType.I64),
- List.of(new WasmI64Const(0))
+ new WasmExpression(List.of(new WasmI64Const(0)))
));
var result = serializeModule(module);
@@ -103,7 +104,7 @@ public class WasmBinaryFormatModuleTests {
),
List.of(),
List.of(WasmValueType.I32),
- List.of(new WasmI32Const(0))
+ new WasmExpression(List.of(new WasmI32Const(0)))
))
.addImport(new WasmImport(
"ModuleName1",