Skip to content

cleanup jscomp/test #6910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions jscomp/test/a.res
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ include (
/* let () = v.[0] <- 'a' */
}: {}
)

/* [%%bs.cast.x: 'a -> 'b ] */
/* external f : int -> (int -> int) = "%identity" */
48 changes: 0 additions & 48 deletions jscomp/test/arith_parser.mly

This file was deleted.

60 changes: 0 additions & 60 deletions jscomp/test/ast_abstract_test.res
Original file line number Diff line number Diff line change
Expand Up @@ -33,64 +33,4 @@ let () = {
idx(#c)
}

/* type a =
| A
| B [@as 3]
| C
[@@deriving {jsConverter = newType}]

let id x =
eq __LOC__ (aFromJs (aToJs x )) x
let a0 = aToJs A
let a1 = aToJs B */

/* let () =
id A ;
id B ;
id C */

/* type b =
| D0
| D1
| D2
| D3
[@@deriving {jsConverter = newType }]


let b0 = bToJs D0
let b1 = bToJs D1

let idb v =
eq __LOC__ (bFromJs (bToJs v )) v

let () = idb D0; idb D1; idb D2 ; idb D3 */

/* type c =
| D0 [@as 3]
| D1
| D2
| D3
[@@deriving {jsConverter = {newType }}]

let c0 = cToJs D0

let idc v = eq __LOC__ (cFromJs (cToJs v)) v

let () = idc D0; idc D1 ; idc D2; idc D3 */

/* type h =
| JsMapperEraseType
| B [@@deriving {accessors; jsConverter = newType} ] */

/*
type z =
| ZFromJs
| ZToJs
| ZXx (* not overridden *)
[@@deriving {
accessors;
jsConverter
}
] */

Mt.from_pair_suites(__MODULE__, suites.contents)
2 changes: 0 additions & 2 deletions jscomp/test/async_ideas.js

This file was deleted.

1 change: 0 additions & 1 deletion jscomp/test/async_ideas.res

This file was deleted.

25 changes: 4 additions & 21 deletions jscomp/test/build.ninja

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions jscomp/test/fail_comp.js

This file was deleted.

1 change: 0 additions & 1 deletion jscomp/test/fail_comp.res

This file was deleted.

34 changes: 2 additions & 32 deletions jscomp/test/global_mangles.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 2 additions & 12 deletions jscomp/test/global_mangles.res
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
/* https://nodejs.org/api/globals.html */
/* Reserved in CommonJS */

let (
__dirname,
__filename,
clearImmediate,
clearInterval,
clearTimeout,
console,
exports,
global,
_module,
process,
require,
setImmediate,
setInterval,
setTimeout,
) = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
) = (1, 2, 3, 4)
84 changes: 0 additions & 84 deletions jscomp/test/gpr_1150.res
Original file line number Diff line number Diff line change
Expand Up @@ -115,87 +115,3 @@ let f = children =>
}
}
}

/*
match children with
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16|]
| a17::children ->
match children with
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17|]
| a18::children ->
match children with
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18|]
| a19::children ->
match children with
| [] -> [|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18;a19|]
| _ -> assert false

*/

/* This function seems to trigger quadratice behavior with the length of [children]
memory consumption is okay
17 -> 4s
18 -> 9s
19 -> 19s
20 -> 40s
*/
/*
let f children =
match children with
| [] -> [||]
| a::[] -> [|a|]
| a::b::[] -> [|a;b|]
| a::b::c::[] -> [|a;b;c|]
| a::b::c::d::[] ->
[|a;b;c;d|]
| a::b::c::d::e::[] ->
[|a;b;c;d;e|]
| a::b::c::d::e::f::[] ->
[|a;b;c;d;e;f|]
| a::b::c::d::e::f::g::[] ->
[|a;b;c;d;e;f;g|]
| a::b::c::d::e::f::g::h::[] ->
[|a;b;c;d;e;f;g;h|]
| a::b::c::d::e::f::g::h::i::[] ->
[|a;b;c;d;e;f;g;h;i|]
| a::b::c::d::e::f::g::h::i::j::[] ->
[|a;b;c;d;e;f;g;h;i;j|]
| a::b::c::d::e::f::g::h::i::j::k::[] ->
[|a;b;c;d;e;f;g;h;i;j;k|]
| a::b::c::d::e::f::g::h::i::j::k::l::[] ->

[|a;b;c;d;e;f;g;h;i;j;k;l|]
| a::b::c::d::e::f::g::h::i::j::k::l::m::[] ->

[|a;b;c;d;e;f;g;h;i;j;k;l;m|]
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::[] ->

[|a;b;c;d;e;f;g;h;i;j;k;l;m;n|]
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::o::[] ->

[|a;b;c;d;e;f;g;h;i;j;k;l;m;n;o|]
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::o::p::[] ->

[|a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p|]
| a::b::c::d::e::f::g::h::i::j::k::l::m::n::o::p::q::[] ->

[|a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q|]
| a0::a1::a2::a3::a4::a5::a6::a7::a8::a9::a10::a11::a12::a13::a14::a15::a16::a17::[] ->

[|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17|]
| a0::a1::a2::a3::a4::a5::a6::a7::a8::a9::a10::a11::a12::a13::a14::a15::a16::a17::a18::[] ->

[|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18|]
| a0::a1::a2::a3::a4::a5::a6::a7::a8::a9::a10::a11::a12::a13::a14::a15::a16::a17::a18::a19::[] ->

[|a0;a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13;a14;a15;a16;a17;a18;a19|]

| _ ->
let msg =
"Reason allows up to 17 static children (but dynamic children in an array can be unlimited in size); You have "
^
((string_of_int (List.length children)) ^
", please put them in an array and assign key to the elements. Sorry for the inconvenience!") in
raise ((Invalid_argument (msg))[@explicit_arity ])

*/
14 changes: 2 additions & 12 deletions jscomp/test/key_word_property_plus_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 2 additions & 12 deletions jscomp/test/key_word_property_plus_test.res
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,13 @@ let eq = (loc, x, y) => {

let () = eq(
__LOC__,
Js.Array2.reduce([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], \"+", 0),
Js.Array2.reduce([1, 2, 3, 4], \"+", 0),
{
open Global_mangles
__dirname +
__filename +
clearImmediate +
clearInterval +
clearTimeout +
console +
exports +
global +
_module +
process +
require +
setImmediate +
setInterval +
setTimeout
require
},
)

Expand Down
16 changes: 0 additions & 16 deletions jscomp/test/lam.md

This file was deleted.

3 changes: 0 additions & 3 deletions jscomp/test/lint.sh

This file was deleted.

9 changes: 0 additions & 9 deletions jscomp/test/loop_suites_test.js

This file was deleted.

1 change: 0 additions & 1 deletion jscomp/test/loop_suites_test.res

This file was deleted.

Loading