Skip to content

Commit ff4d4c0

Browse files
committed
add tone test case
1 parent 3fea2f7 commit ff4d4c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_util.py

+8
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ def test_collate(self):
7979
collate(["ไก่", "เป็ด", "หมู", "วัว"]),
8080
["ไก่", "เป็ด", "วัว", "หมู"],
8181
)
82+
self.assertEqual(
83+
collate(["ก้วย", "ก๋วย", "กวย", "ก่วย", "ก๊วย"]),
84+
collate(["ก๋วย", "ก่วย", "ก้วย", "ก๊วย", "กวย"]),
85+
) # should guarantee same order
86+
self.assertEqual(
87+
collate(["ก้วย", "ก๋วย", "ก่วย", "กวย", "ก้วย", "ก่วย", "ก๊วย"]),
88+
["กวย", "ก่วย", "ก่วย", "ก้วย", "ก้วย", "ก๊วย", "ก๋วย"],
89+
)
8290

8391
# ### pythainlp.util.numtoword
8492

0 commit comments

Comments
 (0)