mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Test for ignoring unicode invisible punctuation when searching
This commit is contained in:
parent
aad20ae447
commit
ef41db8cc7
@ -116,6 +116,7 @@ class TestICU(unittest.TestCase):
|
|||||||
self.ae(x.get_attribute(icu._icu.UCOL_STRENGTH), icu._icu.UCOL_PRIMARY),
|
self.ae(x.get_attribute(icu._icu.UCOL_STRENGTH), icu._icu.UCOL_PRIMARY),
|
||||||
self.ae((0, 4), icu.primary_no_punc_find('pena"', 'peña'))
|
self.ae((0, 4), icu.primary_no_punc_find('pena"', 'peña'))
|
||||||
self.ae((0, 13), icu.primary_no_punc_find("typographers", 'typographer’s'))
|
self.ae((0, 13), icu.primary_no_punc_find("typographers", 'typographer’s'))
|
||||||
|
self.ae((0, 7), icu.primary_no_punc_find('abcd', 'a\u00adb\u200cc\u200dd'))
|
||||||
|
|
||||||
def test_collation_order(self):
|
def test_collation_order(self):
|
||||||
'Testing collation ordering'
|
'Testing collation ordering'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user