예제 #1
0
 def test_transliterate(self):
     self.assertEqual(transliterate(""), "")
     self.assertEqual(transliterate("แมว", "pyicu"), "mæw")
     self.assertEqual(transliterate("คน", engine="ipa"), "kʰon")
     self.assertIsNotNone(transliterate("คน", engine="thaig2p"))
     self.assertIsNotNone(transliterate("แมว", engine="thaig2p"))
     self.assertIsNotNone(trans_list("คน"))
     self.assertIsNotNone(xsampa_list("คน"))
예제 #2
0
 def test_transliterate(self):
     self.assertEqual(transliterate(""), "")
     self.assertEqual(transliterate("แมว", "pyicu"), "mæw")
     self.assertEqual(transliterate("คน", engine="ipa"), "kʰon")
     self.assertIsNotNone(trans_list("คน"))
     self.assertIsNotNone(xsampa_list("คน"))