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)

0 commit comments

Comments
 (0)