From 2caa695ca249f7d44841963f88cab423d67015a6 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Mon, 13 Sep 2021 18:55:01 +0200 Subject: cluster: adjust tests to jellyfish nysiis implementation --- tests/test_cluster.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/test_cluster.py b/tests/test_cluster.py index 793798b..55b349a 100644 --- a/tests/test_cluster.py +++ b/tests/test_cluster.py @@ -76,31 +76,31 @@ def test_release_key_title_nysiis(): Case(input={ 'ident': '', 'title': 'simhash' - }, output=('', 'SANAS')), + }, output=('', 'SANM')), Case(input={ 'ident': '', 'title': 'Simhash' - }, output=('', 'SANAS')), + }, output=('', 'SANM')), Case(input={ 'ident': '', 'title': 'Sim hash' - }, output=('', 'SANAS')), + }, output=('', 'SAN')), Case(input={ 'ident': '', 'title': 'THE year 1929' - }, output=('', 'TAR')), + }, output=('', 'T')), Case(input={ 'ident': '', 'title': '2019?' - }, output=('', '')), + }, output=('', '2019?')), Case(input={ 'ident': '123', 'title': 'H~~2019?' - }, output=('123', 'H')), + }, output=('123', 'H~2019?')), Case(input={ 'ident': '123', 'title': '世界' - }, output=('123', '')), + }, output=('123', '世界')), ) for case in cases: assert case.output == release_key_title_nysiis(case.input), 'failed case {}'.format( -- cgit v1.2.3