Skip to content

Commit dafb82b

Browse files
committed
Add consecutive comments tests for if expressions
1 parent 1921214 commit dafb82b

File tree

1 file changed

+67
-14
lines changed

1 file changed

+67
-14
lines changed

tests/test-files/good/Elm-0.19/AllSyntax/Expressions.elm

Lines changed: 67 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -296,43 +296,96 @@ ifStatement =
296296
if {- A -} True {- B -} then {- C -} 1 {- D -} else {- E -} 2
297297

298298
e =
299-
if {- C -} True {- D -} then
300-
{- E -}
299+
if {- A -} {- B -} True {- C -} {- D -} then {- E -} {- F -} 1 {- G -} {- H -} else {- I -} {- J -} 2
300+
301+
f =
302+
if {- A -} True {- B -} then
303+
{- C -}
301304
1
302-
{- F -}
305+
{- D -}
306+
307+
else {- E -} if {- F -} False {- G -} then
308+
{- H -}
309+
2
310+
{- I -}
303311

304-
else {- G -} if {- H -} False {- I -} then
312+
else
305313
{- J -}
314+
3
315+
316+
g =
317+
if {- A -} {- B -} True {- C -} {- D -} then
318+
{- E -} {- F -}
319+
1
320+
{- G -} {- H -}
321+
322+
else {- I -} {- J -} if {- K -} {- L -} False {- M -} {- N -} then
323+
{- O -} {- P -}
306324
2
307-
{- K -}
325+
{- Q -} {- R -}
308326

309327
else
310-
{- L -}
328+
{- S -} {- T -}
311329
3
312330

313-
f =
331+
h =
314332
if
333+
--A
334+
True
335+
--B
336+
then
315337
--C
338+
1
339+
--D
340+
341+
else
342+
--E
343+
if
344+
--F
345+
False
346+
--G
347+
then
348+
--H
349+
2
350+
--I
351+
352+
else
353+
--J
354+
3
355+
356+
i =
357+
if
358+
--A
359+
--B
316360
True
361+
--C
317362
--D
318363
then
319364
--E
320-
1
321365
--F
366+
1
367+
--G
368+
--H
322369

323370
else
324-
--G
371+
--I
372+
--J
325373
if
326-
--H
374+
--K
375+
--L
327376
False
328-
--I
377+
--M
378+
--N
329379
then
330-
--J
380+
--O
381+
--P
331382
2
332-
--K
383+
--Q
384+
--R
333385

334386
else
335-
--L
387+
--S
388+
--T
336389
3
337390
in
338391
{}

0 commit comments

Comments
 (0)