Skip to content

Commit 42c4637

Browse files
committed
Rename to getSolution/getPreloaded
1 parent aa39028 commit 42c4637

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

example/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { assert, LC, solution } from "./lc-test.js";
1+
import { assert, LC, getSolution } from "./lc-test.js";
22

33
LC.configure({ purity: "Let", numEncoding: "Church" });
4-
const { counter } = LC.compile(solution());
4+
const { counter } = LC.compile(getSolution());
55

66
const T = t => _ => t;
77
const F = _ => f => f;

workspace/lc-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export * as LC from "@codewars/lambda-calculus";
88
const read = (path) => readFileSync(new URL(path, import.meta.url), {encoding: "utf8"});
99

1010
/** Return the contents of the solution file */
11-
export const solution = () => read("./solution.lc");
11+
export const getSolution = () => read("./solution.lc");
1212

1313
/** Return the contents of the optional preloaded file */
14-
export const preloaded = () => read("./preloaded.lc");
14+
export const getPreloaded = () => read("./preloaded.lc");

workspace/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { assert, LC, solution } from "./lc-test.js";
1+
import { assert, LC, getSolution } from "./lc-test.js";
22

33
LC.configure({purity: "Let", numEncoding: "Church"});
4-
const { counter } = LC.compile(solution());
4+
const { counter } = LC.compile(getSolution());
55

66
const T = t => _ => t;
77
const F = _ => f => f;

0 commit comments

Comments
 (0)