Skip to content

Commit 1601b30

Browse files
committed
Check for fun arity in formatter
1 parent 421a77d commit 1601b30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mix/test/mix/tasks/format_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ defmodule Mix.Tasks.FormatTest do
253253
def format(contents, opts) do
254254
assert opts[:from_formatter_exs] == :yes
255255
assert opts[:extension] == ".w"
256-
assert [W: _fun] = opts[:sigils]
256+
assert [W: sigil_fun] = opts[:sigils]
257+
assert is_function(sigil_fun, 2)
257258
contents |> String.split(~r/\s/) |> Enum.join("\n")
258259
end
259260
end

0 commit comments

Comments
 (0)