Skip to content

Commit a305914

Browse files
committed
Add permutations test to source 2
1 parent 99b8441 commit a305914

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

src/virtual-machines/__tests__/source-2.test19.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/virtual-machines/source-2-with-mark-region-gc.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2873,25 +2873,3 @@ function parse_and_compile_and_run(linesize, linenumber, blocknumber, string) {
28732873
const output = run();
28742874
return output;
28752875
}
2876-
2877-
// EXAMPLES
2878-
// compiler and VM test cases
2879-
2880-
// P = parse_and_compile("const x = pair(500, pair(1, 2)); \
2881-
// \
2882-
// //head(x);\
2883-
// //tail(x);");
2884-
// print_program(P);
2885-
// run();
2886-
2887-
2888-
// parse_and_compile_and_run(20, 20, 5, " \
2889-
// function permutations(lst) { \
2890-
// const f = e => map(x => pair(e, x), permutations(remove(e, lst))); \
2891-
// return is_null(lst) \
2892-
// ? pair(null, null) \
2893-
// : accumulate((x,y) => append(f(x), y), null, lst); \
2894-
// } \
2895-
// permutations(enum_list(0, 1)); ");
2896-
2897-

0 commit comments

Comments
 (0)