Fix tests

next
Sayan Nandan 2 years ago
parent 2c2a236501
commit a17d77bf9e
No known key found for this signature in database
GPG Key ID: 8BC07A0A4D41DD52

@ -155,7 +155,11 @@ fn has_remaining_with_incr() {
fn exhausted() {
for src in slices() {
let parser = Parser::new(&src);
assert!(!parser.exhausted());
if src.is_empty() {
assert!(parser.exhausted());
} else {
assert!(!parser.exhausted())
}
}
}
#[test]

Loading…
Cancel
Save