We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e96c05 commit 2fe5d57Copy full SHA for 2fe5d57
lib/ex_unit/lib/ex_unit/diff.ex
@@ -418,14 +418,12 @@ defmodule ExUnit.Diff do
418
diff(left, right, env)
419
end
420
421
- # When matching improper lists, split right list up to the length of left list's proper part
422
defp split_right_list([head | tail], length, acc) when length > 0,
423
do: split_right_list(tail, length - 1, [head | acc])
424
425
defp split_right_list(rest, length, acc) when is_integer(length),
426
do: {Enum.reverse(acc), rest}
427
428
- # For proper lists, process the entire list
429
defp split_right_list([head | tail], acc),
430
do: split_right_list(tail, [head | acc])
431
0 commit comments