Skip to content

Commit dd73f5a

Browse files
committed
Merge pull request #291 from gausby/indent-non-finished-one-line-if-else
Added a test for indenting non-finished one-line if-else
2 parents 87e062f + cf69c02 commit dd73f5a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/elixir-mode-indentation-test.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,15 @@ else
367367
end
368368
")
369369

370+
(elixir-def-indentation-test indent-non-finished-one-line-if-else
371+
(:expected-result :failed :tags '(indentation))
372+
"if condition,
373+
do: :foo,
374+
else: :bar"
375+
"if condition,
376+
do: :foo,
377+
else: :bar"
378+
)
370379

371380
(elixir-def-indentation-test indent-try
372381
(:tags '(indentation))

0 commit comments

Comments
 (0)