mirror of
https://github.com/bspeice/dtparse
synced 2024-11-12 17:08:09 -05:00
#36: Add test to assert no longer panics
This commit is contained in:
parent
6a88885ef5
commit
4d8ade4b05
@ -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());
|
||||
}
|
Loading…
Reference in New Issue
Block a user