Skip to content

Commit 437219c

Browse files
committed
add pythainlp.romanization.royin test
1 parent 744f32e commit 437219c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythainlp/test/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def test_romanization1(self):
4141
self.assertEqual(romanization("แมว"),'mæw')
4242
def test_romanization2(self):
4343
self.assertEqual(romanization("แมว",engine="royin"),'maeo')
44+
self.assertEqual(romanization("เดือน",engine="royin"),'duean')
45+
self.assertEqual(romanization("ดู",engine="royin"),'du')
46+
self.assertEqual(romanization("ดำ",engine="royin"),'dam')
47+
self.assertEqual(romanization("บัว",engine="royin"),'bua')
4448
def test_number(self):
4549
self.assertEqual(numtowords(5611116.50),'ห้าล้านหกแสนหนึ่งหมื่นหนึ่งพันหนึ่งร้อยสิบหกบาทห้าสิบสตางค์')
4650
def test_tcc(self):

0 commit comments

Comments
 (0)