From e361e563980034ca9fbad3b0362663dddaecf734 Mon Sep 17 00:00:00 2001 From: Akshay S Dinesh Date: Mon, 19 Feb 2024 14:47:22 +0530 Subject: [PATCH] fix tests to handle switch to atomic chillu https://github.com/libindic/normalizer/pull/22 --- libindic/normalizer/tests/test_normalizer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libindic/normalizer/tests/test_normalizer.py b/libindic/normalizer/tests/test_normalizer.py index 81d7872..1246164 100644 --- a/libindic/normalizer/tests/test_normalizer.py +++ b/libindic/normalizer/tests/test_normalizer.py @@ -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)