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" ;
22
33LC . configure ( { purity : "Let" , numEncoding : "Church" } ) ;
4- const { counter } = LC . compile ( solution ( ) ) ;
4+ const { counter } = LC . compile ( getSolution ( ) ) ;
55
66const T = t => _ => t ;
77const F = _ => f => f ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export * as LC from "@codewars/lambda-calculus";
88const 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" ) ;
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" ;
22
33LC . configure ( { purity : "Let" , numEncoding : "Church" } ) ;
4- const { counter } = LC . compile ( solution ( ) ) ;
4+ const { counter } = LC . compile ( getSolution ( ) ) ;
55
66const T = t => _ => t ;
77const F = _ => f => f ;
You can’t perform that action at this time.
0 commit comments