From 55862e8aa9463fd80909358dfa71847df1bf41a0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 Jun 2021 20:31:11 +0530 Subject: [PATCH] Fix failing test --- src/calibre/db/tests/writing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/db/tests/writing.py b/src/calibre/db/tests/writing.py index 76a940f9f6..3f76249d91 100644 --- a/src/calibre/db/tests/writing.py +++ b/src/calibre/db/tests/writing.py @@ -805,8 +805,10 @@ class WritingTest(BaseTest): self.assertEqual([1, 3], [x['id'] for x in results]) results = cache.search_annotations('"changed"', annotation_type='bookmark') self.assertEqual([1], [x['id'] for x in results]) - results = cache.search_annotations('"Change"') + results = cache.search_annotations('"Changed"') # changed and change stem differently in english and other euro languages self.assertEqual([1, 3], [x['id'] for x in results]) + results = cache.search_annotations('"SOMe"') + self.assertEqual([3], [x['id'] for x in results]) results = cache.search_annotations('"change"', use_stemming=False) self.assertFalse(results) results = cache.search_annotations('"bookmark1"', highlight_start='[', highlight_end=']')