Add another test
timw4mail/json-parser/pipeline/head This commit looks good Details

This commit is contained in:
Timothy Warren 2021-04-16 22:48:55 -04:00
parent f3a584d11e
commit a6d6d1a36c
1 changed files with 7 additions and 0 deletions

View File

@ -28,3 +28,10 @@ fn bad_json() {
assert!(res.is_err());
println!("{:#?}", res);
}
#[test]
#[should_panic]
fn invalid_unwrap() {
let wrapped = JSONValue::from(5.2f64);
let invalid: String = wrapped.unwrap();
}