Open
Description
Currently, the matcher Contains
is used to assert that a Vec
contains multiple elements.
Would it be more appropriate to rename it ContainsElements
or ContainsAllOf
and have another matcher Contains
to assert the presence of a single element in a Vec
?
Something like:
assert_that!(vec!(1, 2, 3), contains_elements(vec!(1, 2)));
// or
assert_that!(vec!(1, 2, 3), contains_all_of(vec!(1, 2)));
and
assert_that!(vec!(1, 2, 3), contains(1));
Metadata
Metadata
Assignees
Labels
No labels