fix: add "1 video" tokens to dict
This commit is contained in:
parent
29ad2f99d4
commit
c3f82f765b
5 changed files with 26 additions and 9 deletions
|
|
@ -407,7 +407,7 @@ mod tests {
|
|||
#[case::default("default")]
|
||||
#[case::typo("typo")]
|
||||
#[case::radio("radio")]
|
||||
#[case::radio("artist")]
|
||||
#[case::artist("artist")]
|
||||
fn map_music_search_main(#[case] name: &str) {
|
||||
let json_path = path!(*TESTFILES / "music_search" / format!("main_{name}.json"));
|
||||
let json_file = File::open(json_path).unwrap();
|
||||
|
|
|
|||
|
|
@ -393,13 +393,14 @@ pub(crate) fn entry(lang: Language) -> Entry {
|
|||
],
|
||||
},
|
||||
number_nd_tokens: ::phf::Map {
|
||||
key: 15467950696543387533,
|
||||
key: 12913932095322966823,
|
||||
disps: &[
|
||||
(0, 0),
|
||||
],
|
||||
entries: &[
|
||||
("ন\u{9be}ই", 0),
|
||||
("১", 1),
|
||||
("ন\u{9be}ই", 0),
|
||||
("১ট\u{9be}", 1),
|
||||
],
|
||||
},
|
||||
album_types: ::phf::Map {
|
||||
|
|
@ -4659,6 +4660,7 @@ pub(crate) fn entry(lang: Language) -> Entry {
|
|||
],
|
||||
entries: &[
|
||||
("ingen", 0),
|
||||
("én", 1),
|
||||
],
|
||||
},
|
||||
album_types: ::phf::Map {
|
||||
|
|
@ -5032,8 +5034,10 @@ pub(crate) fn entry(lang: Language) -> Entry {
|
|||
number_nd_tokens: ::phf::Map {
|
||||
key: 12913932095322966823,
|
||||
disps: &[
|
||||
(0, 0),
|
||||
],
|
||||
entries: &[
|
||||
("um", 1),
|
||||
],
|
||||
},
|
||||
album_types: ::phf::Map {
|
||||
|
|
|
|||
|
|
@ -201,7 +201,8 @@
|
|||
},
|
||||
"number_nd_tokens": {
|
||||
"নাই": 0,
|
||||
"১": 1
|
||||
"১": 1,
|
||||
"১টা": 1
|
||||
},
|
||||
"album_types": {
|
||||
"ep": "Ep",
|
||||
|
|
@ -2662,7 +2663,8 @@
|
|||
"mrd": 9
|
||||
},
|
||||
"number_nd_tokens": {
|
||||
"ingen": 0
|
||||
"ingen": 0,
|
||||
"én": 1
|
||||
},
|
||||
"album_types": {
|
||||
"album": "Album",
|
||||
|
|
@ -2885,7 +2887,9 @@
|
|||
"mi": 6,
|
||||
"mil": 3
|
||||
},
|
||||
"number_nd_tokens": {},
|
||||
"number_nd_tokens": {
|
||||
"um": 1
|
||||
},
|
||||
"album_types": {
|
||||
"audiolivro": "Audiobook",
|
||||
"ep": "Ep",
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@
|
|||
"শঃ": null
|
||||
},
|
||||
"number_nd_tokens": {
|
||||
"কোনো": null
|
||||
"কোনো": null,
|
||||
"ভিডিঅ’": null,
|
||||
"১টা": 1
|
||||
}
|
||||
},
|
||||
"bn": {
|
||||
|
|
@ -111,7 +113,8 @@
|
|||
},
|
||||
"no": {
|
||||
"number_nd_tokens": {
|
||||
"avspillinger": null
|
||||
"avspillinger": null,
|
||||
"én": 1
|
||||
}
|
||||
},
|
||||
"or": {
|
||||
|
|
@ -129,6 +132,11 @@
|
|||
"ਨੇ": null
|
||||
}
|
||||
},
|
||||
"pt": {
|
||||
"number_nd_tokens": {
|
||||
"um": 1
|
||||
}
|
||||
},
|
||||
"ro": {
|
||||
"number_nd_tokens": {
|
||||
"abonat": null,
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Reference in a new issue