diff --git a/src/calibre/db/tests/metadata.db b/src/calibre/db/tests/metadata.db index d0df012f3f..57ae6ab43f 100644 Binary files a/src/calibre/db/tests/metadata.db and b/src/calibre/db/tests/metadata.db differ diff --git a/src/calibre/db/tests/writing.py b/src/calibre/db/tests/writing.py index edfca2d997..76a940f9f6 100644 --- a/src/calibre/db/tests/writing.py +++ b/src/calibre/db/tests/writing.py @@ -814,6 +814,10 @@ class WritingTest(BaseTest): results = cache.search_annotations('"word"', highlight_start='[', highlight_end=']', snippet_size=3) self.assertEqual(results[0]['text'], '…some [word] changed…') self.assertRaises(FTSQueryError, cache.search_annotations, 'AND OR') + fts_l = [a(type='bookmark', title='路坎坷走来', seq=1),] + cache.set_annotations_for_book(1, 'moo', fts_l) + results = cache.search_annotations('路', highlight_start='[', highlight_end=']') + self.assertEqual(results[0]['text'], '[路]坎坷走来') annot_list[0][0]['title'] = 'changed title' cache.set_annotations_for_book(1, 'moo', annot_list)