Skip to content

Commit

Permalink
add tests for indent of guard inside case of
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Aug 30, 2016
1 parent e19dc84 commit f11d4f7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/guard/case_guard.in.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
f x = case x of
1 -> 0
y | y < 10 -> 10 - y
| otherwise -> y
4 changes: 4 additions & 0 deletions test/guard/case_guard.out.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
f x = case x of
1 -> 0
y | y < 10 -> 10 - y
| otherwise -> y
6 changes: 6 additions & 0 deletions test/guard/where_case_guard.in.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
f = g
where
g x = case x of
1 -> 0
y | y < 10 -> 10 - y
| otherwise -> y
6 changes: 6 additions & 0 deletions test/guard/where_case_guard.out.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
f = g
where
g x = case x of
1 -> 0
y | y < 10 -> 10 - y
| otherwise -> y

0 comments on commit f11d4f7

Please sign in to comment.