From: kaliko Date: Thu, 10 Dec 2020 17:16:30 +0000 (+0100) Subject: Test commutativity fuzzy equality X-Git-Tag: 0.16.0~21 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=f94d7c62791d4dfe3c67ffbd68436eae3e2c3e77;hp=f755e5c13bd8d761979393db7c40757f02c79163;p=mpd-sima.git Test commutativity fuzzy equality --- 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: