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

#36: Add test to assert no longer panics

This commit is contained in:
Bradlee Speice 2022-06-15 22:20:37 -04:00
parent 6a88885ef5
commit 4d8ade4b05

View File

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