Skip to content

Commit

Permalink
Add consecutive comments tests for if expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlefevre committed Nov 20, 2019
1 parent f00b0a7 commit e4f3518
Showing 1 changed file with 67 additions and 14 deletions.
81 changes: 67 additions & 14 deletions tests/test-files/good/Elm-0.19/AllSyntax/Expressions.elm
Original file line number Diff line number Diff line change
Expand Up @@ -296,43 +296,96 @@ ifStatement =
if {- A -} True {- B -} then {- C -} 1 {- D -} else {- E -} 2

e =
if {- C -} True {- D -} then
{- E -}
if {- A -} {- B -} True {- C -} {- D -} then {- E -} {- F -} 1 {- G -} {- H -} else {- I -} {- J -} 2

f =
if {- A -} True {- B -} then
{- C -}
1
{- F -}
{- D -}

else {- E -} if {- F -} False {- G -} then
{- H -}
2
{- I -}

else {- G -} if {- H -} False {- I -} then
else
{- J -}
3

g =
if {- A -} {- B -} True {- C -} {- D -} then
{- E -} {- F -}
1
{- G -} {- H -}

else {- I -} {- J -} if {- K -} {- L -} False {- M -} {- N -} then
{- O -} {- P -}
2
{- K -}
{- Q -} {- R -}

else
{- L -}
{- S -} {- T -}
3

f =
h =
if
--A
True
--B
then
--C
1
--D

else
--E
if
--F
False
--G
then
--H
2
--I

else
--J
3

i =
if
--A
--B
True
--C
--D
then
--E
1
--F
1
--G
--H

else
--G
--I
--J
if
--H
--K
--L
False
--I
--M
--N
then
--J
--O
--P
2
--K
--Q
--R

else
--L
--S
--T
3
in
{}
Expand Down

0 comments on commit e4f3518

Please sign in to comment.