Skip to content

Commit 2dcc3c2

Browse files
committed
add expected failing test for indent-fn-in-multiline-assignment
1 parent 2db7b2b commit 2dcc3c2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/elixir-mode-indentation-test.el

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,28 @@ defmodule RSS do
806806
end
807807
end")
808808

809+
(elixir-def-indentation-test indent-fn-in-multiline-assignment
810+
(:expected-result :failed :tags '(indentation))
811+
"
812+
variable =
813+
fn ->
814+
case :file.open(path, modes) do
815+
{:ok, device} -> device
816+
{:error, reason} ->
817+
raise File.Error, reason: reason
818+
end
819+
end"
820+
821+
"
822+
variable =
823+
fn ->
824+
case :file.open(path, modes) do
825+
{:ok, device} -> device
826+
{:error, reason} ->
827+
raise File.Error, reason: reason
828+
end
829+
end")
830+
809831
;; We don't want automatic whitespace cleanup here because of the significant
810832
;; whitespace after `Record' above. By setting `whitespace-action' to nil,
811833
;; `whitespace-mode' won't automatically clean up trailing whitespace (in my

0 commit comments

Comments
 (0)