From 6da2a0c45cfc6c4691377c8f1661594cb1146a68 Mon Sep 17 00:00:00 2001 From: Simon Jesenko Date: Sat, 19 Sep 2015 11:11:29 +0200 Subject: [PATCH] Test for multi-line function calls without parenthesis Added two test cases for method call without parenthesis, one with atoms being passed as arguments, and other with keyword list. Test cases are marked as `:expected-result :failed`. --- test/elixir-mode-indentation-test.el | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/test/elixir-mode-indentation-test.el b/test/elixir-mode-indentation-test.el index 4b17b7b2..5248b4ab 100644 --- a/test/elixir-mode-indentation-test.el +++ b/test/elixir-mode-indentation-test.el @@ -1525,6 +1525,34 @@ result = end ") +(elixir-def-indentation-test indent-multiline-function-calls-without-parenthesis + (:expected-result :failed :tags '(indentation)) +" +some_method :arg1, +:arg2 +other_method +" +" +some_method :arg1, + :arg2 +other_method +") + +(elixir-def-indentation-test indent-multiline-function-calls-without-parenthesis/2 + (:expected-result :failed :tags '(indentation)) +" +some_method :arg1, +arg1: 1, +arg2: 2 +other_method +" +" +some_method :arg1, + arg1: 1, + arg2: 2 +other_method +") + ;; We don't want automatic whitespace cleanup here because of the significant ;; whitespace after `Record' above. By setting `whitespace-action' to nil, ;; `whitespace-mode' won't automatically clean up trailing whitespace (in my