Skip to content

Commit 2e9813d

Browse files
committed
test: also test compiled patterns
1 parent 0423601 commit 2e9813d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: cli-impl/src/test/java/org/aya/test/cli/ReplCompilerTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ public class ReplCompilerTest {
4141
@Test public void library() throws IOException {
4242
compiler.loadToContext(Paths.get("../ide-lsp", "src", "test", "resources", "lsp-test-lib"));
4343
assertNotNull(findContext("VecCore:::>"));
44-
assertNotNull(findContext("VecCore::vnil"));
44+
45+
var vnil = assertInstanceOf(CompiledVar.class, findContext("VecCore::vnil"));
46+
assertNotNull(vnil);
47+
assertEquals("| /* compiled pattern */ => vnil", vnil.core().easyToString());
48+
4549
var zero = assertInstanceOf(CompiledVar.class, findContext("Nat::Core::zero"));
4650
assertNotNull(zero);
4751
assertEquals("| zero", zero.core().easyToString());

0 commit comments

Comments
 (0)