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

Commit

Permalink
merge: fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Oct 6, 2023
2 parents 15e4a7a + 579c203 commit 63c961d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/unit-tests/interpreter-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe(Interpreter.name, () => {
});
it("evaluates intrinsics", () => {
evaluate("version$")?.should.equal("v" + pkg.version);
evaluate("filename$")?.should.equal("repl");
evaluate("filename$")?.should.equal("test");
});
describe("evaluates general tests (tests/)", () => {
testFiles.forEach((file) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/fibonacci.p
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ int fn fib(int n) {
return n == 1 or n == 2 ? 1 : fib(n - 1) + fib(n - 2)
}

fib(3)
## fib(3)
2 changes: 1 addition & 1 deletion tools/p.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ export default class P {
this.binder = new Binder;
this.resolver = new Resolver;
this.typeChecker = new TypeChecker;
this.interpreter = new Interpreter(this, this.resolver, this.binder);
this.interpreter = new Interpreter(this, this.resolver, this.binder, this.interpreter.fileName);
}
}

0 comments on commit 63c961d

Please sign in to comment.