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