|
1 | 1 | 'use strict';
|
2 | 2 |
|
3 | 3 | var Mt = require("./mt.js");
|
4 |
| -var Block = require("../../lib/js/block.js"); |
5 | 4 | var Ext_list_test = require("./ext_list_test.js");
|
6 | 5 |
|
7 |
| -var suites_000 = /* tuple */[ |
8 |
| - "drop", |
9 |
| - (function (param) { |
10 |
| - return Block.__("Eq", [ |
11 |
| - Ext_list_test.drop(3, Block.__("::", [ |
12 |
| - 0, |
13 |
| - Block.__("::", [ |
14 |
| - 1, |
15 |
| - Block.__("::", [ |
16 |
| - 2, |
17 |
| - "[]" |
18 |
| - ]) |
19 |
| - ]) |
20 |
| - ])), |
21 |
| - "[]" |
22 |
| - ]); |
23 |
| - }) |
24 |
| -]; |
25 |
| - |
26 |
| -var suites_001 = Block.__("::", [ |
27 |
| - /* tuple */[ |
| 6 | +var suites = /* constructor */{ |
| 7 | + tag: "::", |
| 8 | + Arg0: /* tuple */[ |
| 9 | + "drop", |
| 10 | + (function (param) { |
| 11 | + return /* constructor */{ |
| 12 | + tag: "Eq", |
| 13 | + Arg0: Ext_list_test.drop(3, /* constructor */{ |
| 14 | + tag: "::", |
| 15 | + Arg0: 0, |
| 16 | + Arg1: /* constructor */{ |
| 17 | + tag: "::", |
| 18 | + Arg0: 1, |
| 19 | + Arg1: /* constructor */{ |
| 20 | + tag: "::", |
| 21 | + Arg0: 2, |
| 22 | + Arg1: "[]" |
| 23 | + } |
| 24 | + } |
| 25 | + }), |
| 26 | + Arg1: "[]" |
| 27 | + }; |
| 28 | + }) |
| 29 | + ], |
| 30 | + Arg1: /* constructor */{ |
| 31 | + tag: "::", |
| 32 | + Arg0: /* tuple */[ |
28 | 33 | "drop1",
|
29 | 34 | (function (param) {
|
30 |
| - return Block.__("Eq", [ |
31 |
| - Ext_list_test.drop(2, Block.__("::", [ |
32 |
| - 0, |
33 |
| - Block.__("::", [ |
34 |
| - 1, |
35 |
| - Block.__("::", [ |
36 |
| - 2, |
37 |
| - "[]" |
38 |
| - ]) |
39 |
| - ]) |
40 |
| - ])), |
41 |
| - Block.__("::", [ |
42 |
| - 2, |
43 |
| - "[]" |
44 |
| - ]) |
45 |
| - ]); |
| 35 | + return /* constructor */{ |
| 36 | + tag: "Eq", |
| 37 | + Arg0: Ext_list_test.drop(2, /* constructor */{ |
| 38 | + tag: "::", |
| 39 | + Arg0: 0, |
| 40 | + Arg1: /* constructor */{ |
| 41 | + tag: "::", |
| 42 | + Arg0: 1, |
| 43 | + Arg1: /* constructor */{ |
| 44 | + tag: "::", |
| 45 | + Arg0: 2, |
| 46 | + Arg1: "[]" |
| 47 | + } |
| 48 | + } |
| 49 | + }), |
| 50 | + Arg1: /* constructor */{ |
| 51 | + tag: "::", |
| 52 | + Arg0: 2, |
| 53 | + Arg1: "[]" |
| 54 | + } |
| 55 | + }; |
46 | 56 | })
|
47 | 57 | ],
|
48 |
| - Block.__("::", [ |
49 |
| - /* tuple */[ |
50 |
| - "flat_map", |
51 |
| - (function (param) { |
52 |
| - return Block.__("Eq", [ |
53 |
| - Block.__("::", [ |
54 |
| - 0, |
55 |
| - Block.__("::", [ |
56 |
| - 0, |
57 |
| - Block.__("::", [ |
58 |
| - 1, |
59 |
| - Block.__("::", [ |
60 |
| - 1, |
61 |
| - Block.__("::", [ |
62 |
| - 0, |
63 |
| - "[]" |
64 |
| - ]) |
65 |
| - ]) |
66 |
| - ]) |
67 |
| - ]) |
68 |
| - ]), |
69 |
| - Ext_list_test.flat_map((function (x) { |
70 |
| - if (x % 2 === 0) { |
71 |
| - return Block.__("::", [ |
72 |
| - 0, |
73 |
| - "[]" |
74 |
| - ]); |
75 |
| - } else { |
76 |
| - return Block.__("::", [ |
77 |
| - 1, |
78 |
| - Block.__("::", [ |
79 |
| - 1, |
80 |
| - "[]" |
81 |
| - ]) |
82 |
| - ]); |
83 |
| - } |
84 |
| - }), Block.__("::", [ |
85 |
| - 0, |
86 |
| - Block.__("::", [ |
87 |
| - 0, |
88 |
| - Block.__("::", [ |
89 |
| - 3, |
90 |
| - Block.__("::", [ |
91 |
| - 0, |
92 |
| - "[]" |
93 |
| - ]) |
94 |
| - ]) |
95 |
| - ]) |
96 |
| - ])) |
97 |
| - ]); |
98 |
| - }) |
99 |
| - ], |
100 |
| - "[]" |
101 |
| - ]) |
102 |
| - ]); |
103 |
| - |
104 |
| -var suites = Block.__("::", [ |
105 |
| - suites_000, |
106 |
| - suites_001 |
107 |
| - ]); |
| 58 | + Arg1: /* constructor */{ |
| 59 | + tag: "::", |
| 60 | + Arg0: /* tuple */[ |
| 61 | + "flat_map", |
| 62 | + (function (param) { |
| 63 | + return /* constructor */{ |
| 64 | + tag: "Eq", |
| 65 | + Arg0: /* constructor */{ |
| 66 | + tag: "::", |
| 67 | + Arg0: 0, |
| 68 | + Arg1: /* constructor */{ |
| 69 | + tag: "::", |
| 70 | + Arg0: 0, |
| 71 | + Arg1: /* constructor */{ |
| 72 | + tag: "::", |
| 73 | + Arg0: 1, |
| 74 | + Arg1: /* constructor */{ |
| 75 | + tag: "::", |
| 76 | + Arg0: 1, |
| 77 | + Arg1: /* constructor */{ |
| 78 | + tag: "::", |
| 79 | + Arg0: 0, |
| 80 | + Arg1: "[]" |
| 81 | + } |
| 82 | + } |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + Arg1: Ext_list_test.flat_map((function (x) { |
| 87 | + if (x % 2 === 0) { |
| 88 | + return /* constructor */{ |
| 89 | + tag: "::", |
| 90 | + Arg0: 0, |
| 91 | + Arg1: "[]" |
| 92 | + }; |
| 93 | + } else { |
| 94 | + return /* constructor */{ |
| 95 | + tag: "::", |
| 96 | + Arg0: 1, |
| 97 | + Arg1: /* constructor */{ |
| 98 | + tag: "::", |
| 99 | + Arg0: 1, |
| 100 | + Arg1: "[]" |
| 101 | + } |
| 102 | + }; |
| 103 | + } |
| 104 | + }), /* constructor */{ |
| 105 | + tag: "::", |
| 106 | + Arg0: 0, |
| 107 | + Arg1: /* constructor */{ |
| 108 | + tag: "::", |
| 109 | + Arg0: 0, |
| 110 | + Arg1: /* constructor */{ |
| 111 | + tag: "::", |
| 112 | + Arg0: 3, |
| 113 | + Arg1: /* constructor */{ |
| 114 | + tag: "::", |
| 115 | + Arg0: 0, |
| 116 | + Arg1: "[]" |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | + }) |
| 121 | + }; |
| 122 | + }) |
| 123 | + ], |
| 124 | + Arg1: "[]" |
| 125 | + } |
| 126 | + } |
| 127 | +}; |
108 | 128 |
|
109 | 129 | Mt.from_pair_suites("A_list_test", suites);
|
110 | 130 |
|
|
0 commit comments