Ejemplo n.º 1
0
    def test_delete_tone(self):
        self.assertEqual(delete_tone("จิ้น"), "จิน")
        self.assertEqual(delete_tone("เก๋า"), "เกา")

        # Commented out until this unittest bug get fixed:
        # https://bugs.python.org/issue29620
        # with self.assertWarns(DeprecationWarning):
        #     deletetone("จิ้น")
        self.assertEqual(deletetone("จิ้น"), delete_tone("จิ้น"))
Ejemplo n.º 2
0
 def test_deletetone(self):
     self.assertEqual(deletetone("จิ้น"), "จิน")
     self.assertEqual(deletetone("เก๋า"), "เกา")
Ejemplo n.º 3
0
 def test_deletetone(self):
     self.assertEqual(deletetone("จิ้น"), "จิน")
     self.assertEqual(deletetone("เก๋า"), "เกา")