Mercurial > p > roundup > code
diff test/test_indexer.py @ 5962:6137ea845438
Fix russian search/string
russian string is supposed to be two words. Use only 1 of the words
with find().
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 29 Oct 2019 22:13:49 -0400 |
| parents | f6c58a7b535c |
| children | 5bf7b5debb09 |
line wrap: on
line diff
--- a/test/test_indexer.py Tue Oct 29 22:01:11 2019 -0400 +++ b/test/test_indexer.py Tue Oct 29 22:13:49 2019 -0400 @@ -169,14 +169,14 @@ def test_unicode(self): """Test with unicode words. see: https://issues.roundup-tracker.org/issue1344046""" - russian=u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439\u0442\u0435\u043a\u0441\u0442Spr\xfcnge' + russian=u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442Spr\xfcnge' german=u'Spr\xfcnge' self.dex.add_text(('test', '1', 'a'), german ) self.dex.add_text(('test', '2', 'a'), russian + u' ' + german ) self.assertSeqEqual(self.dex.find([ u'Spr\xfcnge']), [('test', '1', 'a'), ('test', '2', 'a')]) - self.assertSeqEqual(self.dex.find([u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439\u0442\u0435\u043a\u0441\u0442Spr\xfcnge']), + self.assertSeqEqual(self.dex.find([u'\u0440\u0443\u0441\u0441\u043a\u0438\u0439']), [('test', '2', 'a')]) def tearDown(self):
