Add another test
All checks were successful
timw4mail/json-parser/pipeline/head This commit looks good
All checks were successful
timw4mail/json-parser/pipeline/head This commit looks good
This commit is contained in:
parent
f3a584d11e
commit
a6d6d1a36c
@ -28,3 +28,10 @@ fn bad_json() {
|
|||||||
assert!(res.is_err());
|
assert!(res.is_err());
|
||||||
println!("{:#?}", res);
|
println!("{:#?}", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[should_panic]
|
||||||
|
fn invalid_unwrap() {
|
||||||
|
let wrapped = JSONValue::from(5.2f64);
|
||||||
|
let invalid: String = wrapped.unwrap();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user