Skip to content

Commit

Permalink
maiyamok -> expand_maiyamok
Browse files Browse the repository at this point in the history
  • Loading branch information
bact authored Nov 1, 2024
1 parent 9902882 commit 022ecbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
display_thai_char,
emoji_to_thai,
eng_to_thai,
expand_maiyamok,
find_keyword,
ipa_to_rtgs,
is_native_thai,
isthai,
isthaichar,
maiyamok,
nectec_to_ipa,
normalize,
now_reign_year,
Expand Down Expand Up @@ -533,27 +533,27 @@ def test_normalize(self):

# expand maiyamok
self.assertEqual(
maiyamok("เด็กๆชอบไปโรงเรียน"),
expand_maiyamok("เด็กๆชอบไปโรงเรียน"),
["เด็ก", "เด็ก", "ชอบ", "ไป", "โรงเรียน"],
)
self.assertEqual(
maiyamok("เด็กๆๆชอบไปโรงเรียน"),
expand_maiyamok("เด็กๆๆชอบไปโรงเรียน"),
["เด็ก", "เด็ก", "เด็ก", "ชอบ", "ไป", "โรงเรียน"],
) # 914
self.assertEqual(
maiyamok(
expand_maiyamok(
["ทำไม", "คน", "ดี", " ", "ๆ", "ๆ", " ", "ถึง", "ทำ", "ไม่ได้"]
),
["ทำไม", "คน", "ดี", "ดี", "ดี", " ", "ถึง", "ทำ", "ไม่ได้"],
)
self.assertEqual(
maiyamok(
expand_maiyamok(
["ทำไม", "คน", "ดี", " ", " ๆ", "ๆ", " ", "ถึง", "ทำ", "ไม่ได้"]
),
["ทำไม", "คน", "ดี", "ดี", "ดี", " ", "ถึง", "ทำ", "ไม่ได้"],
)
self.assertEqual(
maiyamok(
expand_maiyamok(
["ทำไม", "คน", "ดีๆ", " ", "ๆ", "ๆ", " ", "ถึง", "ทำ", "ไม่ได้"]
),
["ทำไม", "คน", "ดี", "ดี", "ดี", "ดี", " ", "ถึง", "ทำ", "ไม่ได้"],
Expand Down

0 comments on commit 022ecbd

Please sign in to comment.