Skip to content

Commit

Permalink
fix tests to handle switch to atomic chillu
Browse files Browse the repository at this point in the history
  • Loading branch information
asdofindia committed Feb 19, 2024
1 parent ab88a01 commit e361e56
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libindic/normalizer/tests/test_normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ def test_normalize(self):
# ൺൻർൽൾൿ are atomic chillus and should get
# converted to ണ്‍ന്‍ര്‍ല്‍ള്‍ക്‍ respectively

self.assertEqual(self.normalizer.normalize(u'അവിൽ'), u'അവില്‍')
self.assertEqual(self.normalizer.normalize(u'രമണൻ'), u'രമണന്‍')
self.assertEqual(self.normalizer.normalize(u'അവൾ'), u'അവള്‍')
self.assertEqual(self.normalizer.normalize(u'ശ്രാവൺ'), u'ശ്രാവണ്‍')
self.assertEqual(self.normalizer.normalize(u'അവിൽ'), u'അവിൽ')
self.assertEqual(self.normalizer.normalize(u'രമണൻ'), u'രമണൻ')
self.assertEqual(self.normalizer.normalize(u'അവൾ'), u'അവൾ')
self.assertEqual(self.normalizer.normalize(u'ശ്രാവൺ'), u'ശ്രാവൺ')

# TODO make this work
# self.assertEqual(normalize("അവിൽപൊതി"), "അവില്‍പൊതി")

def test_multiline_string(self):
input = """കുഞ്ചൻ നമ്പ്യാർ
expected = """കുഞ്ചൻ നമ്പ്യാർ
ചെണ്ടമേളം"""
expected = """കുഞ്ചന്‍ നമ്പ്യാര്‍
input = """കുഞ്ചന്‍ നമ്പ്യാര്‍
ചെണ്ടമേളം"""
actual = self.normalizer.normalize(input)
self.assertEqual(actual, expected)

0 comments on commit e361e56

Please sign in to comment.