Skip to content

Commit ddafa44

Browse files
committed
Add tests
1 parent e4ccfec commit ddafa44

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

tests/syntax_tests/printer/comments/expected/expr.res.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,32 @@ let multiply = (
234234
/* c2 */ m2 /* c3 */,
235235
) => ()
236236

237+
f(
238+
// a
239+
// b
240+
// c
241+
)
242+
243+
f(
244+
// a
245+
// b
246+
// c
247+
)
248+
249+
let x = {
250+
f(
251+
// a
252+
// b
253+
// c
254+
)
255+
256+
f(
257+
// a
258+
// b
259+
// c
260+
)
261+
}
262+
237263
f(() => 1)
238264
// c1
239265
f(_ => 1)

tests/syntax_tests/printer/comments/expr.res

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,35 @@ let f = (/* c0 */ ~greeting /* c1 */, /* c2 */ ~from /* c3 */ as /* c4 */ hometo
223223
let multiply = (/* c-2 */ type t /* c-1 */,/* c0 */ m1 /* c1 */, /* c2 */ m2 /* c3 */) => ()
224224
let multiply = (/* c-4 */ type t /* c-3 */,/* c0 */ m1 /* c1 */, /* c-2 */ type s /* c-1 */, /* c2 */ m2 /* c3 */) => ()
225225

226+
f(
227+
// a
228+
// b
229+
// c
230+
)
231+
232+
f(
233+
// a
234+
// b
235+
// c
236+
()
237+
)
238+
239+
let x = {
240+
f(
241+
// a
242+
// b
243+
// c
244+
)
245+
246+
247+
f(
248+
// a
249+
// b
250+
// c
251+
()
252+
)
253+
}
254+
226255
f(()
227256
// c1
228257
=> 1);

0 commit comments

Comments
 (0)