asserting 0.14.0

Fluent assertions for tests in Rust that are convenient to write and easy to extend.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Implementation of assertions for `slice` values.

use crate::properties::{IsEmptyProperty, LengthProperty};

impl<T> IsEmptyProperty for &[T] {
    fn is_empty_property(&self) -> bool {
        self.is_empty()
    }
}

impl<T> LengthProperty for &[T] {
    fn length_property(&self) -> usize {
        self.len()
    }
}

#[cfg(test)]
mod tests;