Skip to content

Commit 4217259

Browse files
authored
Cleanup jscomp/test (#6910)
removed empty test files, outdated, dangling files.
1 parent e3d8536 commit 4217259

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1812
-595
lines changed

jscomp/test/a.res

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,3 @@ include (
2828
/* let () = v.[0] <- 'a' */
2929
}: {}
3030
)
31-
32-
/* [%%bs.cast.x: 'a -> 'b ] */
33-
/* external f : int -> (int -> int) = "%identity" */

jscomp/test/arith_parser.mly

Lines changed: 0 additions & 48 deletions
This file was deleted.

jscomp/test/ast_abstract_test.res

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -33,64 +33,4 @@ let () = {
3333
idx(#c)
3434
}
3535

36-
/* type a =
37-
| A
38-
| B [@as 3]
39-
| C
40-
[@@deriving {jsConverter = newType}]
41-
42-
let id x =
43-
eq __LOC__ (aFromJs (aToJs x )) x
44-
let a0 = aToJs A
45-
let a1 = aToJs B */
46-
47-
/* let () =
48-
id A ;
49-
id B ;
50-
id C */
51-
52-
/* type b =
53-
| D0
54-
| D1
55-
| D2
56-
| D3
57-
[@@deriving {jsConverter = newType }]
58-
59-
60-
let b0 = bToJs D0
61-
let b1 = bToJs D1
62-
63-
let idb v =
64-
eq __LOC__ (bFromJs (bToJs v )) v
65-
66-
let () = idb D0; idb D1; idb D2 ; idb D3 */
67-
68-
/* type c =
69-
| D0 [@as 3]
70-
| D1
71-
| D2
72-
| D3
73-
[@@deriving {jsConverter = {newType }}]
74-
75-
let c0 = cToJs D0
76-
77-
let idc v = eq __LOC__ (cFromJs (cToJs v)) v
78-
79-
let () = idc D0; idc D1 ; idc D2; idc D3 */
80-
81-
/* type h =
82-
| JsMapperEraseType
83-
| B [@@deriving {accessors; jsConverter = newType} ] */
84-
85-
/*
86-
type z =
87-
| ZFromJs
88-
| ZToJs
89-
| ZXx (* not overridden *)
90-
[@@deriving {
91-
accessors;
92-
jsConverter
93-
}
94-
] */
95-
9636
Mt.from_pair_suites(__MODULE__, suites.contents)

jscomp/test/async_ideas.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

jscomp/test/async_ideas.res

Lines changed: 0 additions & 1 deletion
This file was deleted.

jscomp/test/build.ninja

Lines changed: 4 additions & 21 deletions
Large diffs are not rendered by default.

jscomp/test/fail_comp.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

jscomp/test/fail_comp.res

Lines changed: 0 additions & 1 deletion
This file was deleted.

jscomp/test/global_mangles.js

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

jscomp/test/global_mangles.res

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1-
/* https://nodejs.org/api/globals.html */
1+
/* Reserved in CommonJS */
22

33
let (
44
__dirname,
55
__filename,
6-
clearImmediate,
7-
clearInterval,
8-
clearTimeout,
9-
console,
106
exports,
11-
global,
12-
_module,
13-
process,
147
require,
15-
setImmediate,
16-
setInterval,
17-
setTimeout,
18-
) = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
8+
) = (1, 2, 3, 4)

jscomp/test/gpr_1150.res

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -115,87 +115,3 @@ let f = children =>
115115
}
116116
}
117117
}
118-
119-
/*
120-
match children with
121-
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16|]
122-
| a17::children ->
123-
match children with
124-
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17|]
125-
| a18::children ->
126-
match children with
127-
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18|]
128-
| a19::children ->
129-
match children with
130-
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18;a19|]
131-
| _ -> assert false
132-
133-
*/
134-
135-
/* This function seems to trigger quadratice behavior with the length of [children]
136-
memory consumption is okay
137-
17 -> 4s
138-
18 -> 9s
139-
19 -> 19s
140-
20 -> 40s
141-
*/
142-
/*
143-
let f children =
144-
match children with
145-
| [] -> [||]
146-
| a::[] -> [|a|]
147-
| a::b::[] -> [|a;b|]
148-
| a::b::c::[] -> [|a;b;c|]
149-
| a::b::c::d::[] ->
150-
[|a;b;c;d|]
151-
| a::b::c::d::e::[] ->
152-
[|a;b;c;d;e|]
153-
| a::b::c::d::e::f::[] ->
154-
[|a;b;c;d;e;f|]
155-
| a::b::c::d::e::f::g::[] ->
156-
[|a;b;c;d;e;f;g|]
157-
| a::b::c::d::e::f::g::h::[] ->
158-
[|a;b;c;d;e;f;g;h|]
159-
| a::b::c::d::e::f::g::h::i::[] ->
160-
[|a;b;c;d;e;f;g;h;i|]
161-
| a::b::c::d::e::f::g::h::i::j::[] ->
162-
[|a;b;c;d;e;f;g;h;i;j|]
163-
| a::b::c::d::e::f::g::h::i::j::k::[] ->
164-
[|a;b;c;d;e;f;g;h;i;j;k|]
165-
| a::b::c::d::e::f::g::h::i::j::k::l::[] ->
166-
167-
[|a;b;c;d;e;f;g;h;i;j;k;l|]
168-
| a::b::c::d::e::f::g::h::i::j::k::l::m::[] ->
169-
170-
[|a;b;c;d;e;f;g;h;i;j;k;l;m|]
171-
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::[] ->
172-
173-
[|a;b;c;d;e;f;g;h;i;j;k;l;m;n|]
174-
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::o::[] ->
175-
176-
[|a;b;c;d;e;f;g;h;i;j;k;l;m;n;o|]
177-
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::o::p::[] ->
178-
179-
[|a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p|]
180-
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::o::p::q::[] ->
181-
182-
[|a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q|]
183-
| a0::a1::a2::a3::a4::a5::a6::a7::a8::a9::a10::a11::a12::a13::a14::a15::a16::a17::[] ->
184-
185-
[|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17|]
186-
| a0::a1::a2::a3::a4::a5::a6::a7::a8::a9::a10::a11::a12::a13::a14::a15::a16::a17::a18::[] ->
187-
188-
[|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18|]
189-
| a0::a1::a2::a3::a4::a5::a6::a7::a8::a9::a10::a11::a12::a13::a14::a15::a16::a17::a18::a19::[] ->
190-
191-
[|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18;a19|]
192-
193-
| _ ->
194-
let msg =
195-
"Reason allows up to 17 static children (but dynamic children in an array can be unlimited in size); You have "
196-
^
197-
((string_of_int (List.length children)) ^
198-
", please put them in an array and assign key to the elements. Sorry for the inconvenience!") in
199-
raise ((Invalid_argument (msg))[@explicit_arity ])
200-
201-
*/

jscomp/test/key_word_property_plus_test.js

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

jscomp/test/key_word_property_plus_test.res

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,13 @@ let eq = (loc, x, y) => {
88

99
let () = eq(
1010
__LOC__,
11-
Js.Array2.reduce([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], \"+", 0),
11+
Js.Array2.reduce([1, 2, 3, 4], \"+", 0),
1212
{
1313
open Global_mangles
1414
__dirname +
1515
__filename +
16-
clearImmediate +
17-
clearInterval +
18-
clearTimeout +
19-
console +
2016
exports +
21-
global +
22-
_module +
23-
process +
24-
require +
25-
setImmediate +
26-
setInterval +
27-
setTimeout
17+
require
2818
},
2919
)
3020

jscomp/test/lam.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

jscomp/test/lint.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

jscomp/test/loop_suites_test.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

jscomp/test/loop_suites_test.res

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)