From 1bc4553d5a5f5de18854493d63c8568c4bbeebc0 Mon Sep 17 00:00:00 2001 From: Runic <49625808+R-unic@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:11:02 -0400 Subject: [PATCH] test: update intrinsic interpreter tests --- tools/unit-tests/interpreter-test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/unit-tests/interpreter-test.ts b/tools/unit-tests/interpreter-test.ts index 4874b27e..114ed759 100644 --- a/tools/unit-tests/interpreter-test.ts +++ b/tools/unit-tests/interpreter-test.ts @@ -93,7 +93,8 @@ describe(Interpreter.name, () => { evaluate("eval('1 + 2')")?.should.equal(3); }); it("evaluates intrinsics", () => { - evaluate("__version")?.should.equal("v" + pkg.version); + evaluate("version$")?.should.equal("v" + pkg.version); + evaluate("filename$")?.should.equal("test"); }); describe("evaluates general tests (tests/)", () => { testFiles.forEach((file) => {