From aa4f3e3db78e50f1d25a452a14134f2bbb6aa05a Mon Sep 17 00:00:00 2001 From: Martin Gausby Date: Thu, 29 Oct 2015 09:39:00 +0100 Subject: [PATCH] Added a test case for if within an else --- test/elixir-mode-indentation-test.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/elixir-mode-indentation-test.el b/test/elixir-mode-indentation-test.el index 95a42e70..2a62d45c 100644 --- a/test/elixir-mode-indentation-test.el +++ b/test/elixir-mode-indentation-test.el @@ -348,6 +348,26 @@ else no end") + +(elixir-def-indentation-test indent-if-else/2 + ;; https://github.com/elixir-lang/emacs-elixir/issues/288 + (:expected-result :failed :tags '(indentation)) + " +if condition do +:foo +else +if condition, do: :bar +end +" + " +if condition do + :foo +else + if condition, do: :bar +end +") + + (elixir-def-indentation-test indent-try (:tags '(indentation)) "