akkoma/test/support/matchers/list.ex

8 lines
222 B
Elixir
Raw Normal View History

2023-08-06 08:58:11 -06:00
defmodule Pleroma.Test.Matchers.List do
import ExUnit.Assertions
2023-08-06 09:20:46 -06:00
2023-08-06 08:58:11 -06:00
def assert_unordered_list_equal(list_a, list_b) when is_list(list_a) and is_list(list_b) do
assert Enum.sort(list_a) == Enum.sort(list_b)
end
end