Testing Elixir - MapSet.new vs. Enum.sort in unit test example

Depends on what you want to test, as the behaviour of these is different in case of actual_fields_with_types = [1,2,1] and @expected_fields_with_types == [2, 1]

2 Likes