Skip to content

Commit

Permalink
Add failing test for comment in cond expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Scramblejams committed Sep 18, 2014
1 parent 0ead1fb commit 56dc2b1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/elixir-mode-indentation-test.el
Expand Up @@ -486,6 +486,29 @@ end"
end
end")

(elixir-def-indentation-test cond-comment
(:expected-result :failed)
"
def foo() do
cond do
yadda ->
:ok
badda -> # comment throws this off
:what
end
end
"
"
def foo() do
cond do
yadda ->
:ok
badda -> # comment throws this off
:what
end
end
")

(elixir-def-indentation-test indent-heredoc
(:expected-result :failed)
"
Expand Down

0 comments on commit 56dc2b1

Please sign in to comment.