From 8f03a9fb5d65c44762edd478d964935da5f2c85a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 17 Jun 2023 21:08:21 +0100 Subject: Introduce FreeVariables collection type --- .../org/shedlang/compiler/stackir/InstructionSerializerTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/java/org/shedlang/compiler/stackir') diff --git a/src/test/java/org/shedlang/compiler/stackir/InstructionSerializerTests.java b/src/test/java/org/shedlang/compiler/stackir/InstructionSerializerTests.java index 4c1cc6e2..14e71249 100644 --- a/src/test/java/org/shedlang/compiler/stackir/InstructionSerializerTests.java +++ b/src/test/java/org/shedlang/compiler/stackir/InstructionSerializerTests.java @@ -1,6 +1,7 @@ package org.shedlang.compiler.stackir; import org.junit.jupiter.api.Test; +import org.shedlang.compiler.ast.typed.FreeVariables; import org.shedlang.compiler.sources.Sources; import org.shedlang.compiler.stackir.instructions.DefineFunctionInstruction; import org.shedlang.compiler.stackir.instructions.Instruction; @@ -9,7 +10,6 @@ import org.shedlang.compiler.types.NamespaceName; import java.util.List; -import static org.shedlang.compiler.util.Sets.orderedSetOf; import static org.zwobble.precisely.AssertThat.assertThat; import static org.zwobble.precisely.Matchers.equalTo; @@ -30,7 +30,7 @@ public class InstructionSerializerTests { "f", List.of(Instructions.param("p1"), Instructions.param("p2")), List.of(Instructions.param("n1"), Instructions.param("n2")), - orderedSetOf("fv1", "fv2"), + FreeVariables.of("fv1", "fv2"), List.of( Instructions.pushBool(true), Instructions.pushBool(false) -- cgit v1.2.3