Skip to content

Commit 66775f5

Browse files
committed
Failing test
1 parent 96212bb commit 66775f5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/elixir/test/elixir/code_normalizer/quoted_ast_test.exs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -633,13 +633,12 @@ defmodule Code.Normalizer.QuotedASTTest do
633633
input = "def foo, do: :bar, __cursor__()"
634634
expected = "def foo, [{:do, :bar}, __cursor__()]"
635635

636-
ast = Code.string_to_quoted!(input, token_metadata: true)
636+
ast = Code.string_to_quoted!(input)
637637

638638
assert quoted_to_string(ast) == expected
639639

640640
ast =
641641
Code.string_to_quoted!(input,
642-
token_metadata: true,
643642
literal_encoder: &{:ok, {:__block__, &2, [&1]}}
644643
)
645644

@@ -648,20 +647,19 @@ defmodule Code.Normalizer.QuotedASTTest do
648647

649648
test "keyword arg edge case: literal encoder" do
650649
input = """
651-
foo Bar do
650+
foo(Bar) do
652651
:ok
653652
end
654653
"""
655654

656655
expected = String.trim(input)
657656

658-
ast = Code.string_to_quoted!(input, token_metadata: true)
657+
ast = Code.string_to_quoted!(input)
659658

660659
assert quoted_to_string(ast) == expected
661660

662661
ast =
663662
Code.string_to_quoted!(input,
664-
token_metadata: true,
665663
literal_encoder: &{:ok, {:__block__, &2, [&1]}}
666664
)
667665

0 commit comments

Comments
 (0)