Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
test: update intrinsic interpreter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic authored Oct 6, 2023
1 parent c8383c0 commit 1bc4553
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/unit-tests/interpreter-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 1bc4553

Please sign in to comment.