From 9cc79de07d7ae26fd8da539c0441817d6dd655cc Mon Sep 17 00:00:00 2001 From: Martin Gausby Date: Thu, 7 Apr 2016 14:41:53 +0200 Subject: [PATCH] added a failing indentation test for cond within with --- test/elixir-mode-indentation-test.el | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/test/elixir-mode-indentation-test.el b/test/elixir-mode-indentation-test.el index c352aa0d..e5105148 100644 --- a/test/elixir-mode-indentation-test.el +++ b/test/elixir-mode-indentation-test.el @@ -630,6 +630,32 @@ def foo() do end ") +(elixir-def-indentation-test cond-within-with + (:expected-result :failed :tags '(indentation)) + ;; https://github.com/elixir-lang/emacs-elixir/issues/319 + "with( + foo <- + cond do + bar -> + bar + + baz -> + baz + end, + do: :ok +)" + "with( + foo <- + cond do + bar -> + bar + + baz -> + baz + end, + do: :ok +)") + (elixir-def-indentation-test indent-heredoc (:tags '(indentation)) "