From 812f1c44f064c797687e739b8c722d9f528ecef6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 24 Jun 2023 21:19:17 +0100 Subject: Add names for functions --- .../compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java | 3 +++ 1 file changed, 3 insertions(+) (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 5495d798..29c0feba 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 @@ -45,6 +45,7 @@ public class WasmBinaryFormatModuleTests { public void canSerializeModuleWithFunctions(Snapshotter snapshotter) throws IOException, InterruptedException { var module = WasmModule.EMPTY .addFunction(new WasmFunction( + "f1", List.of( new WasmLocal("paramA", WasmValueType.F32), new WasmLocal("paramB", WasmValueType.F64) @@ -57,6 +58,7 @@ public class WasmBinaryFormatModuleTests { List.of(new WasmI32Const(0)) )) .addFunction(new WasmFunction( + "f2", List.of( new WasmLocal("paramA", WasmValueType.F32) ), @@ -95,6 +97,7 @@ public class WasmBinaryFormatModuleTests { public void localNamesHaveCorrectFuncIndexWhenThereAreImportedFunctions(Snapshotter snapshotter) throws IOException, InterruptedException { var module = WasmModule.EMPTY .addFunction(new WasmFunction( + "f", List.of( new WasmLocal("paramA", WasmValueType.F32) ), -- cgit v1.2.3