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::default("default")]
|
||||||
#[case::typo("typo")]
|
#[case::typo("typo")]
|
||||||
#[case::radio("radio")]
|
#[case::radio("radio")]
|
||||||
#[case::radio("artist")]
|
#[case::artist("artist")]
|
||||||
fn map_music_search_main(#[case] name: &str) {
|
fn map_music_search_main(#[case] name: &str) {
|
||||||
let json_path = path!(*TESTFILES / "music_search" / format!("main_{name}.json"));
|
let json_path = path!(*TESTFILES / "music_search" / format!("main_{name}.json"));
|
||||||
let json_file = File::open(json_path).unwrap();
|
let json_file = File::open(json_path).unwrap();
|
||||||
|
|
|
||||||
|
|
@ -393,13 +393,14 @@ pub(crate) fn entry(lang: Language) -> Entry {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
number_nd_tokens: ::phf::Map {
|
number_nd_tokens: ::phf::Map {
|
||||||
key: 15467950696543387533,
|
key: 12913932095322966823,
|
||||||
disps: &[
|
disps: &[
|
||||||
(0, 0),
|
(0, 0),
|
||||||
],
|
],
|
||||||
entries: &[
|
entries: &[
|
||||||
("ন\u{9be}ই", 0),
|
|
||||||
("১", 1),
|
("১", 1),
|
||||||
|
("ন\u{9be}ই", 0),
|
||||||
|
("১ট\u{9be}", 1),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
album_types: ::phf::Map {
|
album_types: ::phf::Map {
|
||||||
|
|
@ -4659,6 +4660,7 @@ pub(crate) fn entry(lang: Language) -> Entry {
|
||||||
],
|
],
|
||||||
entries: &[
|
entries: &[
|
||||||
("ingen", 0),
|
("ingen", 0),
|
||||||
|
("én", 1),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
album_types: ::phf::Map {
|
album_types: ::phf::Map {
|
||||||
|
|
@ -5032,8 +5034,10 @@ pub(crate) fn entry(lang: Language) -> Entry {
|
||||||
number_nd_tokens: ::phf::Map {
|
number_nd_tokens: ::phf::Map {
|
||||||
key: 12913932095322966823,
|
key: 12913932095322966823,
|
||||||
disps: &[
|
disps: &[
|
||||||
|
(0, 0),
|
||||||
],
|
],
|
||||||
entries: &[
|
entries: &[
|
||||||
|
("um", 1),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
album_types: ::phf::Map {
|
album_types: ::phf::Map {
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,8 @@
|
||||||
},
|
},
|
||||||
"number_nd_tokens": {
|
"number_nd_tokens": {
|
||||||
"নাই": 0,
|
"নাই": 0,
|
||||||
"১": 1
|
"১": 1,
|
||||||
|
"১টা": 1
|
||||||
},
|
},
|
||||||
"album_types": {
|
"album_types": {
|
||||||
"ep": "Ep",
|
"ep": "Ep",
|
||||||
|
|
@ -2662,7 +2663,8 @@
|
||||||
"mrd": 9
|
"mrd": 9
|
||||||
},
|
},
|
||||||
"number_nd_tokens": {
|
"number_nd_tokens": {
|
||||||
"ingen": 0
|
"ingen": 0,
|
||||||
|
"én": 1
|
||||||
},
|
},
|
||||||
"album_types": {
|
"album_types": {
|
||||||
"album": "Album",
|
"album": "Album",
|
||||||
|
|
@ -2885,7 +2887,9 @@
|
||||||
"mi": 6,
|
"mi": 6,
|
||||||
"mil": 3
|
"mil": 3
|
||||||
},
|
},
|
||||||
"number_nd_tokens": {},
|
"number_nd_tokens": {
|
||||||
|
"um": 1
|
||||||
|
},
|
||||||
"album_types": {
|
"album_types": {
|
||||||
"audiolivro": "Audiobook",
|
"audiolivro": "Audiobook",
|
||||||
"ep": "Ep",
|
"ep": "Ep",
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@
|
||||||
"শঃ": null
|
"শঃ": null
|
||||||
},
|
},
|
||||||
"number_nd_tokens": {
|
"number_nd_tokens": {
|
||||||
"কোনো": null
|
"কোনো": null,
|
||||||
|
"ভিডিঅ’": null,
|
||||||
|
"১টা": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bn": {
|
"bn": {
|
||||||
|
|
@ -111,7 +113,8 @@
|
||||||
},
|
},
|
||||||
"no": {
|
"no": {
|
||||||
"number_nd_tokens": {
|
"number_nd_tokens": {
|
||||||
"avspillinger": null
|
"avspillinger": null,
|
||||||
|
"én": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"or": {
|
"or": {
|
||||||
|
|
@ -129,6 +132,11 @@
|
||||||
"ਨੇ": null
|
"ਨੇ": null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"pt": {
|
||||||
|
"number_nd_tokens": {
|
||||||
|
"um": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
"ro": {
|
"ro": {
|
||||||
"number_nd_tokens": {
|
"number_nd_tokens": {
|
||||||
"abonat": null,
|
"abonat": null,
|
||||||
|
|
|
||||||
|
|
@ -1108,7 +1108,8 @@ fn search_empty(rp: RustyPipe) {
|
||||||
fn search_suggestion(rp: RustyPipe) {
|
fn search_suggestion(rp: RustyPipe) {
|
||||||
let result = tokio_test::block_on(rp.query().search_suggestion("hunger ga")).unwrap();
|
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]
|
#[rstest]
|
||||||
|
|
|
||||||
Reference in a new issue