aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-21 23:41:55 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-21 23:41:55 +0100
commit0984cad6e314800cf1bc3fe604e1e48f0ed85ed7 (patch)
treee8a5d9017def221e48b39ddc25c8550c0876d353 /src/test/java
parent3b038d3e9058ea1683b19c58c397881e0b425088 (diff)
Move import identifier onto function
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java6
1 files changed, 2 insertions, 4 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 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);