Skip to content

Commit

Permalink
fix: tests referencing old names
Browse files Browse the repository at this point in the history
  • Loading branch information
asdofindia committed Feb 17, 2024
1 parent 13be874 commit b14f7e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libindic/payyans/tests/test_payyans.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ def setUp(self):
def test_ascii2unicode(self):
self.assertEqual(
self.payyans.ASCII2Unicode(
"aebmfw", "ambili"), u"മലയാളം")
"aebmfw", "ML-TTAmbili"), u"മലയാളം")

def test_unicode2ascii(self):
self.assertEqual(self.payyans.Unicode2ASCII("മലയാളം", "ambili"), "aebmfw")
self.assertEqual(self.payyans.Unicode2ASCII("മലയാളം", "ML-TTAmbili"), "aebmfw")

def test_double_swaras(self):
inputs = ["ss{U", "t{]aw", "kvss{XWX"]
expected = ["ഡ്രൈ", "പ്രേമം", "സ്ത്രൈണത"]
for i in range(len(inputs)):
actual = self.payyans.ASCII2Unicode(inputs[i], "karthika")
actual = self.payyans.ASCII2Unicode(inputs[i], "ML-TTKarthika")
self.assertEqual(actual, expected[i])

0 comments on commit b14f7e9

Please sign in to comment.