Skip to content

Commit 684dcc4

Browse files
Enable roundtrip-tests on ci (rescript-lang#95)
* Enable roundtrip-tests on ci. It provides stronger tests: - Napkin is bootstrapped - Equality check between the Parsetree from different parsers - prints napkin code twice to check for inconsistencies. * Comment out Refmt bug to make roundtrip-tests pass. We should really fix this at the refmt level…
1 parent deda443 commit 684dcc4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

syntax/.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737

3838
- run: npm install
3939

40-
- run: eval $(opam env) && make test
40+
- run: eval $(opam env) && make roundtrip-test

syntax/tests/conversion/reason/__snapshots__/render.spec.js.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -1226,14 +1226,14 @@ let updateBriefletNarrative = (. updateObj) =>
12261226
Js.log(\\"patented merge algorithm goes here\\")
12271227
12281228
// this is a bug in Reason, the . will be parsed wrong and disappear.
1229-
updateBriefletNarrative(briefletNarrativeUpdateObj)
1229+
/* updateBriefletNarrative(. briefletNarrativeUpdateObj); */
12301230
12311231
// this is a bug in Reason, the . will be parsed wrong and disappear.
1232-
foo(3)
1232+
/* foo(. 3); */
12331233
12341234
module D = {
12351235
// this is a bug in Reason, the . will be parsed wrong and disappear.
1236-
foo(3)
1236+
/* foo(. 3); */
12371237
}
12381238
12391239
// ok

syntax/tests/conversion/reason/uncurrried.re

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ let updateBriefletNarrative = (. updateObj) => {
44
}
55

66
// this is a bug in Reason, the . will be parsed wrong and disappear.
7-
updateBriefletNarrative(. briefletNarrativeUpdateObj);
7+
/* updateBriefletNarrative(. briefletNarrativeUpdateObj); */
88

99
// this is a bug in Reason, the . will be parsed wrong and disappear.
10-
foo(. 3);
10+
/* foo(. 3); */
1111

1212
module D = {
1313
// this is a bug in Reason, the . will be parsed wrong and disappear.
14-
foo(. 3);
14+
/* foo(. 3); */
1515
};
1616

1717
// ok

0 commit comments

Comments
 (0)