From a6d6d1a36c37c120b578088203f879fe78413092 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 16 Apr 2021 22:48:55 -0400 Subject: [PATCH] Add another test --- tests/error_tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/error_tests.rs b/tests/error_tests.rs index 1fe62c9..b061960 100644 --- a/tests/error_tests.rs +++ b/tests/error_tests.rs @@ -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(); +}