Function galvanic_assert::matchers::collection::sorted_strictly_ascending
[−]
[src]
pub fn sorted_strictly_ascending<'a, T, I>() -> Box<Fn(&'a I) -> MatchResult> where
&'a I: IntoIterator<Item = &'a T> + 'a,
T: Ord + Debug + 'a,
Matches if the asserted collection is sorted strictly ascending.
An empty collection is assumed to be always sorted.
Examples
use galvanic_assert::matchers::collection::*; assert_that!(&vec![1,2,3,4,5], sorted_strictly_ascending());