From 4d8ade4b05359ac3320da6fce10b0cb2e06e6737 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Wed, 15 Jun 2022 22:20:37 -0400 Subject: [PATCH] #36: Add test to assert no longer panics --- src/tests/fuzzing.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/fuzzing.rs b/src/tests/fuzzing.rs index 6abc514..383c183 100644 --- a/src/tests/fuzzing.rs +++ b/src/tests/fuzzing.rs @@ -86,4 +86,12 @@ fn github_35() { let parse_str = str::from_utf8(&parse_vec).unwrap(); let parse_result = parse(parse_str); assert!(parse_result.is_err()); +} + +#[test] +fn github_36() { + let parse_vec = base64::decode("KTYuLg==").unwrap(); + let parse_str = str::from_utf8(&parse_vec).unwrap(); + let parse_result = parse(parse_str); + assert!(parse_result.is_err()); } \ No newline at end of file