Function xpct::be_sorted_asc

source ·
pub fn be_sorted_asc<'a, T, Actual>() -> Matcher<'a, Actual, Actual>where
    T: Ord + 'a,
    Actual: Debug + AsRef<[T]> + 'a,
Expand description

Succeeds when the actual value is sorted in ascending order.

Examples

use xpct::{expect, be_sorted_asc};

expect!(vec!["a", "b", "c"]).to(be_sorted_asc());