From 68ad9bb83b6ee0ef7c694610801e8adc691f03f4 Mon Sep 17 00:00:00 2001 From: Mike Dalton Date: Sun, 12 Feb 2017 00:58:30 -0500 Subject: [PATCH] Failing test for defined function indentation with when See #391 --- test/elixir-mode-indentation-test.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/elixir-mode-indentation-test.el b/test/elixir-mode-indentation-test.el index f23a97d0..587682a4 100644 --- a/test/elixir-mode-indentation-test.el +++ b/test/elixir-mode-indentation-test.el @@ -252,6 +252,19 @@ def str(s, sub, start_pos, end_pos) when is_binary(s) and is_binary(sub) do # an end ") +(elixir-def-indentation-test indent-continuation-lines-when-without-parens + (:tags '(indentation)) + " +def foo(x) when x + 1 > 2 do + [] +end +" + " +def foo(x) when x + 1 > 2 do + [] +end +") + (elixir-def-indentation-test indent-continuation-lines-assignment (:tags '(indentation)) "