pub fn err_into<T, E>(a: Result<T, E>) -> EExpand description
Asserts that the value is err and returns the value.
ยงExample
use common_testing::assert;
#[test]
fn test_1() {
let result = Err("abc");
let err = assert::err_into(a);
assert::equal(err, "abc");
}