Skip to content

Commit 6ef23e7

Browse files
committed
Test another broken behavior about case-of followed by a list
1 parent 1d108f2 commit 6ef23e7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/purescript-indentation-tests.el

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,18 @@ test3 a
263263
= case a of
264264
{ x: y }
265265
-> y"))
266+
267+
(ert-deftest comma-first-list-after-case-of ()
268+
"A comma-first list was getting misindented if goes after case-of"
269+
:expected-result :failed
270+
(purescript-test-indentation "
271+
fun = case _ of
272+
[ a
273+
, b ]
274+
"
275+
276+
"
277+
fun = case _ of
278+
[ a
279+
, b ]
280+
"))

0 commit comments

Comments
 (0)