ok_into

Function ok_into 

Source
pub fn ok_into<T, E>(a: Result<T, E>) -> T
where T: Debug, E: Debug,
Expand description

Asserts that the value is ok and returns the value.

ยงExample

use common_testing::assert;

#[test]
fn test_1() {
 let result = Ok("abc");
 let ok = assert::ok_into(a);
 assert::equal(ok, "abc");
}