pub fn sorted_ascending<'a, T, I>() -> Box<dyn Fn(&'a I) -> MatchResult>
Expand description
Matches if the asserted collection is sorted weakly ascending.
An empty collection is assumed to be always sorted.
#Examples
use galvanic_assert::matchers::collection::*;
assert_that!(&vec![1,2,2,3,4,4,5], sorted_ascending());