Prevent 2-tuples from being normalized twice (#11007)

This commit is contained in:
Dorgan
2021-05-25 20:31:07 +02:00
committed by GitHub
parent 5872d4947e
commit 689bb36dab
2 changed files with 18 additions and 16 deletions
@@ -478,6 +478,16 @@ defmodule Code.Normalizer.FormatterASTTest do
defp sample do
[
# comment
{:a, "~> 1.2"}
]
end
"""
assert_same ~S"""
defp sample do
[
# comment
{:a, "~> 1.2"},
{:b, "~> 1.2"}
]
end