diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-22 17:02:51 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-22 17:02:51 +0100 |
| commit | 96a5e5d7fe6af05163de84b522effb6f1893dbaf (patch) | |
| tree | f7ca6477a93292e28fc46b02541a1a4790e7f1a3 /src/test/java | |
| parent | abccf06f978217831e0eedd7182ab356dd20659e (diff) | |
Support string addition in Patio code gen
Diffstat (limited to 'src/test/java')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/shedlang/compiler/backends/llvm/LlvmPatioExampleTests.java b/src/test/java/org/shedlang/compiler/backends/llvm/LlvmPatioExampleTests.java index bb9ef76a..d2eb006e 100644 --- a/src/test/java/org/shedlang/compiler/backends/llvm/LlvmPatioExampleTests.java +++ b/src/test/java/org/shedlang/compiler/backends/llvm/LlvmPatioExampleTests.java @@ -24,6 +24,6 @@ public class LlvmPatioExampleTests extends ExampleTests { @Override protected boolean isDisabled(String testName) { - return !List.of("hello-world", "true", "val", "val-as-namespace-statement").contains(testName); + return !List.of("hello-world", "string-add", "true", "val", "val-as-namespace-statement").contains(testName); } } diff --git a/src/test/java/org/shedlang/compiler/backends/wasm/WasmPatioExampleTests.java b/src/test/java/org/shedlang/compiler/backends/wasm/WasmPatioExampleTests.java index 459ab9d4..3000076b 100644 --- a/src/test/java/org/shedlang/compiler/backends/wasm/WasmPatioExampleTests.java +++ b/src/test/java/org/shedlang/compiler/backends/wasm/WasmPatioExampleTests.java @@ -24,6 +24,6 @@ public class WasmPatioExampleTests extends ExampleTests { @Override protected boolean isDisabled(String testName) { - return !List.of("hello-world", "true", "val", "val-as-namespace-statement").contains(testName); + return !List.of("hello-world", "string-add", "true", "val", "val-as-namespace-statement").contains(testName); } } diff --git a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenIntAddTests.java b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenIntAddTests.java index 5969a9cf..328707a9 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioCodeGenIntAddTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioCodeGenIntAddTests.java @@ -14,8 +14,8 @@ import static org.shedlang.compiler.patio.PatioTesting.serialize; @ExtendWith({SnapshotResolver.class}) public class PatioCodeGenIntAddTests { @Test - public void intAddGeneratesIntAddInstruction(Snapshotter snapshotter) throws IOException { - var stackIr = Instructions.intAdd(); + public void canGenerateCodeForStringAdd(Snapshotter snapshotter) throws IOException { + var stackIr = Instructions.stringAdd(); var context = PatioCodeGenContext.EMPTY .temporaryPush(new PatioLocalRef("a")) .temporaryPush(new PatioLocalRef("b")) |
