From f12f949dda91f596c8ec401375e48cef584218c2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 21 Jul 2023 16:16:19 +0100 Subject: Introduce type for Stack IR namespaces --- .../org/shedlang/compiler/stackir/StackCompilerNamespaceTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/java') 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), -- cgit v1.2.3