From f94d7c62791d4dfe3c67ffbd68436eae3e2c3e77 Mon Sep 17 00:00:00 2001 From: kaliko Date: Thu, 10 Dec 2020 18:16:30 +0100 Subject: [PATCH] Test commutativity fuzzy equality --- tests/test_simastr.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_simastr.py b/tests/test_simastr.py index 88b8b97..549cfae 100644 --- a/tests/test_simastr.py +++ b/tests/test_simastr.py @@ -19,6 +19,7 @@ class TestSequenceFunctions(unittest.TestCase): self.assertFalse(fuzzystr('eeee', 'éééé')) tests = [ ('eeee', 'éééé', self.assertTrue), + ('éééé', 'eeee', self.assertTrue), ('The Doors', 'Doors', self.assertTrue), ('Tigres Del Norte', 'Los Tigres Del Norte', self.assertTrue), ( 'The Desert Sessions & PJ Harvey', @@ -29,6 +30,8 @@ class TestSequenceFunctions(unittest.TestCase): 'Smells Like Teen Spirits (live)', self.assertTrue ), + ('Touché Amoré', 'TOUCHE AMORE', self.assertTrue), + ('TOUCHE AMORE', 'Touché Amoré', self.assertTrue), ] sima.lib.simastr.SimaStr.diafilter = True for sta, stb, assertfunc in tests: -- 2.39.5