From 0984cad6e314800cf1bc3fe604e1e48f0ed85ed7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 21 Jun 2023 23:41:55 +0100 Subject: Move import identifier onto function --- .../backends/wasm/structure/WasmBinaryFormatModuleTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 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 a2594d0a..e77b976d 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 @@ -50,14 +50,12 @@ public class WasmBinaryFormatModuleTests { .addImport(new WasmImport( "ModuleName1", "EntityName1", - "Identifier1", - new WasmImportDescriptor.Func(new WasmFuncType(List.of(), List.of())) + new WasmImportDescriptor.Func("Identifier1", new WasmFuncType(List.of(), List.of())) )) .addImport(new WasmImport( "ModuleName2", "EntityName2", - "Identifier2", - new WasmImportDescriptor.Func(new WasmFuncType(List.of(WasmValueType.I32), List.of())) + new WasmImportDescriptor.Func("Identifier2", new WasmFuncType(List.of(WasmValueType.I32), List.of())) )); var result = serializeModule(module); -- cgit v1.2.3