Ejemplo n.º 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("คน"))
Ejemplo n.º 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("คน"))