Test that empty filters return a None

This commit is contained in:
Clément Renault 2021-12-09 11:14:51 +01:00
parent ef59762d8e
commit 65519bc04b
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -644,4 +644,10 @@ mod tests {
error.to_string()
);
}
#[test]
fn empty_filter() {
let option = Filter::from_str(" ").unwrap();
assert_eq!(option, None);
}
}