From 5e15348d603b824f7d8725cb33852881294935ab Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 24 Jun 2023 23:01:33 +0100 Subject: Add WasmExpression --- .../backends/wasm/structure/WasmBinaryFormatModuleTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/test/java') 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", -- cgit v1.2.3