lets_expect 0.5.2

Clean tests for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod point;

#[cfg(test)]
mod tests {
    use crate::point::Point;
    use lets_expect::lets_expect;

    lets_expect! {
        expect(point.x = 5) {
            let mut point = Point { x: 1, y: 2 };

            to change_only_x {
                change(point.x) { from(1), to(5), by(4) },
                not_change(point.y)
            }
        }
    }
}