aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-09-13 18:55:01 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-09-13 18:55:01 +0200
commit2caa695ca249f7d44841963f88cab423d67015a6 (patch)
tree05d666cec491bd118af74412e114a858c1997d3b /tests
parent14068f0c743fa558a0303b2c04775d8baedeba4c (diff)
downloadfuzzycat-2caa695ca249f7d44841963f88cab423d67015a6.tar.gz
fuzzycat-2caa695ca249f7d44841963f88cab423d67015a6.zip
cluster: adjust tests to jellyfish nysiis implementation
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cluster.py14
1 files changed, 7 insertions, 7 deletions
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(