fix: add "1 video" tokens to dict

This commit is contained in:
ThetaDev 2023-05-07 19:29:19 +02:00
parent 29ad2f99d4
commit c3f82f765b
5 changed files with 26 additions and 9 deletions

View file

@ -1108,7 +1108,8 @@ fn search_empty(rp: RustyPipe) {
fn search_suggestion(rp: RustyPipe) {
let result = tokio_test::block_on(rp.query().search_suggestion("hunger ga")).unwrap();
assert!(result.contains(&"hunger games".to_owned()));
assert!(result.iter().any(|s| s.starts_with("hunger games ")));
assert_gte(result.len(), 10, "search suggestions");
}
#[rstest]