mirror of
https://github.com/bspeice/dtparse
synced 2024-11-12 17:08:09 -05:00
#35: Add test to make sure it does not panic
This commit is contained in:
parent
a193a79afa
commit
6a88885ef5
@ -78,4 +78,12 @@ fn github_34() {
|
||||
let parse_str = str::from_utf8(&parse_vec).unwrap();
|
||||
let parse_result = parse(parse_str);
|
||||
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());
|
||||
}
|
Loading…
Reference in New Issue
Block a user