Function common_testing::assert::err
source · pub fn err<T, E>(a: &Result<T, E>)
Expand description
Assert that the value is err.
Example
use common_testing::assert;
#[test]
fn test_1() {
let result = Err("abc");
assert::err(&result);
}