1
0
mirror of https://github.com/bspeice/dtparse synced 2024-12-22 04:18:09 -05:00

#35: Add test to make sure it does not panic

This commit is contained in:
Bradlee Speice 2022-06-15 22:18:20 -04:00
parent a193a79afa
commit 6a88885ef5

View File

@ -79,3 +79,11 @@ fn github_34() {
let parse_result = parse(parse_str); let parse_result = parse(parse_str);
assert!(parse_result.is_err()); assert!(parse_result.is_err());
} }
#[test]
fn github_35() {
let parse_vec = base64::decode("KTY6LjYqNio6KjYn").unwrap();
let parse_str = str::from_utf8(&parse_vec).unwrap();
let parse_result = parse(parse_str);
assert!(parse_result.is_err());
}