Add another test
All checks were successful
timw4mail/json-parser/pipeline/head This commit looks good

This commit is contained in:
Timothy Warren 2021-04-16 22:48:55 -04:00
parent f3a584d11e
commit a6d6d1a36c

View File

@ -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();
}