pub fn contains_subset<'a, T, I, J>(
expected_elements: I,
) -> Box<dyn Matcher<'a, J> + 'a>where
T: PartialEq + Debug + 'a,
I: IntoIterator<Item = T> + 'a,
J: IntoIterator<Item = T> + 'a,
ContainsSubset<T>: Matcher<'a, J>,
Expand description
Matches if the asserted collection contains all (possibly more) of the expected elements.
#Examples
use galvanic_assert::matchers::collection::*;
assert_that!(&vec![1,2,3,4,5,6], contains_subset(vec![3,1,2,4]));