Skip to content

Commit 5e08eed

Browse files
committed
Tweak some tests for uncurried.
1 parent 2ea1f7f commit 5e08eed

8 files changed

+24
-212
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
- Convert `js.ml` files to `.res`. https://github.com/rescript-lang/rescript-compiler/pull/6835
5555
- Remove old `.ml` tests. https://github.com/rescript-lang/rescript-compiler/pull/6847
5656
- Make compiler libs ready for uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6861
57+
- Make tests ready for uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6862
5758

5859
#### :nail_care: Polish
5960

jscomp/test/ari_regress_test.js

+5-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/ari_regress_test.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let g1 = (x, y) => {
1515
}
1616
let x = gg(3, 5)(6)
1717

18-
let v = g1(3, 4)(6, ...)
18+
let v = g1(3, 4)(6, _)
1919

2020
let suites = {
2121
open Mt
@@ -32,7 +32,7 @@ let suites = {
3232
),
3333
),
3434
("curry3", _ => Eq(x, 14)),
35-
(__LOC__, _ => Eq(h.contents, 1)),
35+
(__LOC__, _ => Eq(h.contents, 2)),
3636
}
3737
}
3838

jscomp/test/build.ninja

+1-2
Large diffs are not rendered by default.

jscomp/test/earger_curry_test.js

+11-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/earger_curry_test.res

+4-3
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ let f = x =>
114114
u */
115115

116116
let g = x => {
117-
let u = add5(
117+
let u = (a,b) => add5(
118118
x,
119119
{
120120
incr(v)
@@ -124,7 +124,8 @@ let g = x => {
124124
incr(v)
125125
2
126126
},
127-
...
127+
a,
128+
b
128129
)
129130
all_v := list{v.contents, ...all_v.contents}
130131
u
@@ -141,6 +142,6 @@ let () = {
141142
eq(__LOC__, b, 11)
142143
eq(__LOC__, c, 10)
143144
eq(__LOC__, d, 11)
144-
eq(__LOC__, all_v.contents, list{8, 8, 6, 6, 4, 2})
145+
eq(__LOC__, all_v.contents, list{8, 6, 6, 4, 4, 2})
145146
}
146147
let () = Mt.from_pair_suites(__MODULE__, suites.contents)

jscomp/test/pr_regression_test.js

-119
This file was deleted.

jscomp/test/pr_regression_test.res

-63
This file was deleted.

0 commit comments

Comments
 (0)