Forgot to test boolean operators in queries

This commit is contained in:
Kovid Goyal 2021-06-19 11:50:46 +05:30
parent e0dad27caa
commit 6e62ccab38
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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 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'), [])
# }}}