Skip to content

Commit 3edb7ee

Browse files
committed
Fix russian search/string
russian string is supposed to be two words. Use only 1 of the words with find().
1 parent 8cbebc0 commit 3edb7ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_indexer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ def test_manyresults(self):
169169
def test_unicode(self):
170170
"""Test with unicode words. see:
171171
https://issues.roundup-tracker.org/issue1344046"""
172-
russian=u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439\u0442\u0435\u043a\u0441\u0442Spr\xfcnge'
172+
russian=u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442Spr\xfcnge'
173173
german=u'Spr\xfcnge'
174174
self.dex.add_text(('test', '1', 'a'), german )
175175
self.dex.add_text(('test', '2', 'a'), russian + u' ' + german )
176176

177177
self.assertSeqEqual(self.dex.find([ u'Spr\xfcnge']),
178178
[('test', '1', 'a'), ('test', '2', 'a')])
179-
self.assertSeqEqual(self.dex.find([u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439\u0442\u0435\u043a\u0441\u0442Spr\xfcnge']),
179+
self.assertSeqEqual(self.dex.find([u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439']),
180180
[('test', '2', 'a')])
181181

182182
def tearDown(self):

0 commit comments

Comments
 (0)