forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunsafe_ppx_test.js
97 lines (82 loc) · 1.84 KB
/
unsafe_ppx_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
// Generated CODE, PLEASE EDIT WITH CARE
'use strict';
var Mt = require("./mt");
var Ffi_js = require("./ffi_js");
var x = ("\x01\x02\x03");
var max = (Math.max);
function $$test(x,y){
return x + y;
}
;
var max2 = (Math.max);
function u(param) {
return max2(3, param);
}
var max3 = (Math.max);
function uu(param) {
return max2(3, param);
}
var empty = ( Object.keys)(3);
var v = $$test(1, 2);
Mt.from_pair_suites("unsafe_ppx_test.ml", /* :: */[
/* tuple */[
"unsafe_max",
function () {
return /* Eq */{
0: 2,
1: max(1, 2),
length: 2,
tag: 0
};
}
],
/* :: */[
/* tuple */[
"unsafe_test",
function () {
return /* Eq */{
0: 3,
1: v,
length: 2,
tag: 0
};
}
],
/* :: */[
/* tuple */[
"unsafe_max2",
function () {
return /* Eq */{
0: 2,
1: (Math.max)(1, 2),
length: 2,
tag: 0
};
}
],
/* :: */[
/* tuple */[
"ffi_keys",
function () {
return /* Eq */{
0: /* array */["a"],
1: Ffi_js.keys(( {a : 3})),
length: 2,
tag: 0
};
}
],
/* [] */0
]
]
]
]);
exports.x = x;
exports.max = max;
exports.max2 = max2;
exports.u = u;
exports.max3 = max3;
exports.uu = uu;
exports.empty = empty;
exports.v = v;
/* x Not a pure module */