assertive 0.0.2

Collection of assertions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use assertive::assert_ok;

#[test]
fn ok() {
    let value = assert_ok!(Ok::<_, ()>("hello"));
    assert_eq!(value, "hello");
}

#[test]
#[should_panic]
fn err() {
    assert_ok!(Err::<(), _>("boom"));
}