aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-30 18:56:13 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-30 18:56:13 +0100
commitd198788e4d4da184bf6a931ce2cceb19288659d5 (patch)
tree9497f6a249395ecdf0d8193cc778c25b3e3e746c /src/test/java
parenta5728591c5341fe8b64060916baf735bc2438eb2 (diff)
Replace WasmDataSymbol with WasmDataElement
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/shedlang/compiler/backends/wasm/structure/WasmBinaryFormatModuleTests.java11
1 files changed, 3 insertions, 8 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 b2e080c3..99b92179 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
@@ -5,8 +5,6 @@ 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.linking.WasmDataSegmentIndex;
-import org.shedlang.compiler.backends.wasm.structure.ast.linking.WasmDataSymbol;
import org.shedlang.compiler.backends.wasm.structure.ast.linking.WasmInitFunc;
import org.shedlang.compiler.backends.wasm.structure.ast.modules.*;
import org.shedlang.compiler.backends.wasm.structure.ast.types.*;
@@ -284,15 +282,13 @@ public class WasmBinaryFormatModuleTests {
new WasmExpression(List.of(new WasmI32Const(0))),
WasmAlignment.ALIGN_32_BIT,
List.of(
- new WasmDataSymbol(
+ new WasmDataElement(
"data1",
- new WasmDataSegmentIndex(0),
0,
2
),
- new WasmDataSymbol(
+ new WasmDataElement(
"data2",
- new WasmDataSegmentIndex(0),
2,
2
)
@@ -304,9 +300,8 @@ public class WasmBinaryFormatModuleTests {
new WasmExpression(List.of(new WasmI32Const(4))),
WasmAlignment.NONE,
List.of(
- new WasmDataSymbol(
+ new WasmDataElement(
"rodata1",
- new WasmDataSegmentIndex(1),
0,
4
)