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:
parent
6a88885ef5
commit
4d8ade4b05
@ -87,3 +87,11 @@ fn github_35() {
|
|||||||
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_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