diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-21 16:16:19 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-21 16:16:19 +0100 |
| commit | f12f949dda91f596c8ec401375e48cef584218c2 (patch) | |
| tree | 9ebd7000309764bfb7bd91ba008d4661d4bd31c1 /src/test/java | |
| parent | 8a0d86df0f63e69f4bd6c5699411caddfb4c72f8 (diff) | |
Introduce type for Stack IR namespaces
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java b/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java index 44f45c1d..298611db 100644 --- a/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java +++ b/src/test/java/org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java @@ -34,9 +34,9 @@ public class StackCompilerNamespaceTests { List.of("f") ); - var instructions = StackCompiler.compileNamespace(node); + var stackIrNamespace = StackCompiler.compileNamespace(node); - assertThat(instructions, isSequence( + assertThat(stackIrNamespace.instructions(), isSequence( // TODO: test the builtin loading properly instanceOf(NamespaceImportInstruction.class), instanceOf(FieldLoadInstruction.class), |
