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
#[cfg(all(test, feature = "tokio"))]
mod tests {
    use lets_expect::lets_expect;

    lets_expect! { #tokio_test
        let value = 5;
        let spawned = tokio::spawn(async move {
            value
        });

        expect(spawned.await) {
            to match_pattern!(Ok(5))
        }
    }
}