Skip to content

Commit

Permalink
Adapt test cases for CLDR annotation update
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-fabian committed Aug 25, 2024
1 parent 0f4620e commit a671dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_emoji_candidates.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_candidates_persons(self) -> None:
('👨\u200d👨\u200d👧\u200d👦', 'family: man, man, girl, boy'))
self.assertEqual(
mq.candidates('people')[0][:2],
('👯', 'woman with bunny ears “people with bunny ears partying”'))
('🧑🏾\u200d🤝\u200d🧑🏼', 'people holding hands: medium-dark skin tone, medium-light skin tone “people holding hands medium dark skin tone medium light skin tone”'))

def test_candidates_birthday_cake(self) -> None:
mq = itb_emoji.EmojiMatcher(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_emoji_similar.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_similar_horse_racing_pinyin_missing_zh_CN(self) -> None:
languages = ['zh_CN'])
self.assertEqual(
mq.similar('🏇', match_limit = 3),
[('🏇', '赛马 [🏇, 三冠, 赛马, 赛马骑师, 马, 骑师, 骑马]', 7), ('🐎', '马 [赛马, 马, 骑马]', 3), ('🏇🏻', '赛马: 较浅肤色 [赛马, ]', 2)])
[('🏇', '赛马 [🏇, 三冠, 赛马, 赛马骑师, 马, 骑师, 骑马]', 7), ('🏇🏻', '赛马: 较浅肤色 [三冠, 赛马, 赛马骑师, 马, 骑师, 骑马]', 6), ('🏇🏼', '赛马: 中等-浅肤色 [三冠, 赛马, 赛马骑师, 马, 骑师, 骑马]', 6)])

@unittest.skipUnless(
itb_emoji.IMPORT_PINYIN_SUCCESSFUL,
Expand All @@ -173,7 +173,7 @@ def test_similar_horse_racing_pinyin_available_zh_CN(self) -> None:
languages = ['zh_CN'])
self.assertEqual(
mq.similar('🏇', match_limit = 3),
[('🏇', '赛马 [🏇, 三冠, sānguān, 赛马, sàimǎ, 赛马骑师, sàimǎqíshī, 马, mǎ, 骑师, qíshī, 骑马, qímǎ]', 13), ('🐎', '马 [赛马, sàimǎ, 马, mǎ, 骑马, qímǎ]', 6), ('🏇🏻', '赛马: 较浅肤色 [赛马, sàimǎ, 马, mǎ]', 4)])
[('🏇', '赛马 [🏇, 三冠, sānguān, 赛马, sàimǎ, 赛马骑师, sàimǎqíshī, 马, mǎ, 骑师, qíshī, 骑马, qímǎ]', 13), ('🏇🏻', '赛马: 较浅肤色 [三冠, sānguān, 赛马, sàimǎ, 赛马骑师, sàimǎqíshī, 马, mǎ, 骑师, qíshī, 骑马, qímǎ]', 12), ('🏇🏼', '赛马: 中等-浅肤色 [三冠, sānguān, 赛马, sàimǎ, 赛马骑师, sàimǎqíshī, 马, mǎ, 骑师, qíshī, 骑马, qímǎ]', 12)])

@unittest.skipIf(
itb_emoji.IMPORT_PINYIN_SUCCESSFUL,
Expand Down

0 comments on commit a671dc6

Please sign in to comment.