mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Forgot to test boolean operators in queries
This commit is contained in:
parent
e0dad27caa
commit
6e62ccab38
@ -144,4 +144,9 @@ class FTSTest(BaseTest):
|
|||||||
self.ae(conn.search('NEAR("one two" "three four")'), [('>one two< >three four<…',)])
|
self.ae(conn.search('NEAR("one two" "three four")'), [('>one two< >three four<…',)])
|
||||||
self.ae(conn.search('NEAR(one six, 2)'), [])
|
self.ae(conn.search('NEAR(one six, 2)'), [])
|
||||||
|
|
||||||
|
conn.insert_text('moose cat')
|
||||||
|
self.ae(conn.search('moose OR one'), [('>moose< cat',), ('>one< two three four…',)])
|
||||||
|
self.ae(conn.search('(moose OR one) NOT cat'), [('>one< two three four…',)])
|
||||||
|
self.ae(conn.search('moose AND one'), [])
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user