File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- import { assert , LC , solution } from "./lc-test.js" ;
1
+ import { assert , LC , getSolution } from "./lc-test.js" ;
2
2
3
3
LC . configure ( { purity : "Let" , numEncoding : "Church" } ) ;
4
- const { counter } = LC . compile ( solution ( ) ) ;
4
+ const { counter } = LC . compile ( getSolution ( ) ) ;
5
5
6
6
const T = t => _ => t ;
7
7
const F = _ => f => f ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export * as LC from "@codewars/lambda-calculus";
8
8
const read = ( path ) => readFileSync ( new URL ( path , import . meta. url ) , { encoding : "utf8" } ) ;
9
9
10
10
/** Return the contents of the solution file */
11
- export const solution = ( ) => read ( "./solution.lc" ) ;
11
+ export const getSolution = ( ) => read ( "./solution.lc" ) ;
12
12
13
13
/** Return the contents of the optional preloaded file */
14
- export const preloaded = ( ) => read ( "./preloaded.lc" ) ;
14
+ export const getPreloaded = ( ) => read ( "./preloaded.lc" ) ;
Original file line number Diff line number Diff line change 1
- import { assert , LC , solution } from "./lc-test.js" ;
1
+ import { assert , LC , getSolution } from "./lc-test.js" ;
2
2
3
3
LC . configure ( { purity : "Let" , numEncoding : "Church" } ) ;
4
- const { counter } = LC . compile ( solution ( ) ) ;
4
+ const { counter } = LC . compile ( getSolution ( ) ) ;
5
5
6
6
const T = t => _ => t ;
7
7
const F = _ => f => f ;
You can’t perform that action at this time.
0 commit comments