Skip to content

Commit 6da2a0c

Browse files
committed
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`.
1 parent fea4caa commit 6da2a0c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/elixir-mode-indentation-test.el

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,34 @@ result =
15251525
end
15261526
")
15271527

1528+
(elixir-def-indentation-test indent-multiline-function-calls-without-parenthesis
1529+
(:expected-result :failed :tags '(indentation))
1530+
"
1531+
some_method :arg1,
1532+
:arg2
1533+
other_method
1534+
"
1535+
"
1536+
some_method :arg1,
1537+
:arg2
1538+
other_method
1539+
")
1540+
1541+
(elixir-def-indentation-test indent-multiline-function-calls-without-parenthesis/2
1542+
(:expected-result :failed :tags '(indentation))
1543+
"
1544+
some_method :arg1,
1545+
arg1: 1,
1546+
arg2: 2
1547+
other_method
1548+
"
1549+
"
1550+
some_method :arg1,
1551+
arg1: 1,
1552+
arg2: 2
1553+
other_method
1554+
")
1555+
15281556
;; We don't want automatic whitespace cleanup here because of the significant
15291557
;; whitespace after `Record' above. By setting `whitespace-action' to nil,
15301558
;; `whitespace-mode' won't automatically clean up trailing whitespace (in my

0 commit comments

Comments
 (0)