-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
equal implies full equality aka == which seems confusing (and was pointed out as a downside to introducing assertions into our code base).
Not sure what the best name for this is, I introduced a small wrapper called assert_lists_contain_same for now - it's probably not the best for now happy for other variants but I wonder ig this would be a change considered for the library itself?
Wrapper for reference, yes it's just a module for now not a macro:
import Assertions, except: [assert_lists_equal: 2, assert_lists_equal: 3]
import AssertionAdjustmentsdefmodule ssertionAdjustments do
require Assertions
def assert_lists_contain_same(list_a, list_b) do
Assertions.assert_lists_equal(list_a, list_b)
end
def assert_lists_contain_same(list_a, list_b, comparison) do
Assertions.assert_lists_equal(list_a, list_b, comparison)
end
endMetadata
Metadata
Assignees
Labels
No labels