Skip to content

Commit 727cd8a

Browse files
committed
Refactor and format code
1 parent b2b0d89 commit 727cd8a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/elixir/test/elixir/code_fragment_test.exs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,11 +909,13 @@ defmodule CodeFragmentTest do
909909
end
910910

911911
test "options" do
912-
assert cc2q("foo(", columns: true) == s2q("foo(__cursor__())", columns: true)
913-
assert cc2q("foo(123,", columns: true) == s2q("foo(123,__cursor__())", columns: true)
912+
opts = [columns: true]
913+
assert cc2q("foo(", opts) == s2q("foo(__cursor__())", opts)
914+
assert cc2q("foo(123,", opts) == s2q("foo(123,__cursor__())", opts)
914915

915-
assert cc2q("foo(", token_metadata: true) == s2q("foo(__cursor__())", token_metadata: true)
916-
assert cc2q("foo(123,", token_metadata: true) == s2q("foo(123,__cursor__())", token_metadata: true)
916+
opts = [token_metadata: true]
917+
assert cc2q("foo(", opts) == s2q("foo(__cursor__())", opts)
918+
assert cc2q("foo(123,", opts) == s2q("foo(123,__cursor__())", opts)
917919
end
918920
end
919921
end

0 commit comments

Comments
 (0)