itertools
itertools copied to clipboard
Add assert_empty?
I think this would be a useful addition.
pub fn assert_empty<I>(i: impl IntoIterator<Item = I>)
where
I: Debug + PartialEq<I>,
{
assert_equal(i, iter::empty::<I>());
}
Except it probably needs to have it's own error message implementation since "left" and "right" wouldn't make sense.