-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathmodule_alias_test.js
112 lines (99 loc) · 1.94 KB
/
module_alias_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
'use strict';
var Mt = require("./mt.js");
var List = require("../../lib/js/list.js");
var Block = require("../../lib/js/block.js");
var Curry = require("../../lib/js/curry.js");
var suites = [/* [] */0];
var test_id = [0];
function eq(loc, x, y) {
test_id[0] = test_id[0] + 1 | 0;
suites[0] = /* :: */[
/* tuple */[
loc + (" id " + test_id[0]),
(function () {
return /* Eq */Block.__(0, [
x,
y
]);
})
],
suites[0]
];
return /* () */0;
}
function f(x) {
var L = /* List */[
List.length,
List.hd,
List.tl,
List.nth,
List.rev,
List.append,
List.rev_append,
List.concat,
List.flatten,
List.iter,
List.iteri,
List.map,
List.mapi,
List.rev_map,
List.fold_left,
List.fold_right,
List.iter2,
List.map2,
List.rev_map2,
List.fold_left2,
List.fold_right2,
List.for_all,
List.exists,
List.for_all2,
List.exists2,
List.mem,
List.memq,
List.find,
List.filter,
List.find_all,
List.partition,
List.assoc,
List.assq,
List.mem_assoc,
List.mem_assq,
List.remove_assoc,
List.remove_assq,
List.split,
List.combine,
List.sort,
List.stable_sort,
List.fast_sort,
List.sort_uniq,
List.merge
];
console.log(x);
console.log(List.length(x));
return L;
}
var h = f(/* [] */0);
var a = Curry._1(h[/* length */0], /* :: */[
1,
/* :: */[
2,
/* :: */[
3,
/* [] */0
]
]
]);
eq("File \"module_alias_test.ml\", line 30, characters 6-13", a, 3);
Mt.from_pair_suites("module_alias_test.ml", suites[0]);
var N = 0;
var V = 0;
var J = 0;
exports.suites = suites;
exports.test_id = test_id;
exports.eq = eq;
exports.N = N;
exports.V = V;
exports.J = J;
exports.f = f;
exports.a = a;
/* h Not a pure module */