mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-25 15:51:03 +00:00
Test that empty filters return a None
This commit is contained in:
@ -644,4 +644,10 @@ mod tests {
|
|||||||
error.to_string()
|
error.to_string()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn empty_filter() {
|
||||||
|
let option = Filter::from_str(" ").unwrap();
|
||||||
|
assert_eq!(option, None);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user