Skip to content

Commit 2865589

Browse files
committed
Merge pull request #360 from gausby/add-tests-for-maps-with-strings-as-keys
Added a failing test for indenting maps with sting as keys
2 parents f70dc95 + a33eb58 commit 2865589

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/elixir-mode-indentation-test.el

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,23 @@ defmodule Foo do
15111511
end
15121512
end")
15131513

1514+
(elixir-def-indentation-test indent-maps-with-stings-as-keys
1515+
(:expected-result :failed :tags '(indentation))
1516+
"%{
1517+
\"data\" => %{
1518+
\"foo\" => %{
1519+
\"bar\" => nil
1520+
}
1521+
}
1522+
}"
1523+
"%{
1524+
\"data\" => %{
1525+
\"foo\" => %{
1526+
\"bar\" => nil
1527+
}
1528+
}
1529+
}")
1530+
15141531
(elixir-def-indentation-test indent-maps-and-structs-elements
15151532
(:tags '(indentation))
15161533
"

0 commit comments

Comments
 (0)