Test: Add test for negated, plain quoted phrase

0.3.2 doesn't have negation, and this should be tested with negation.
This commit is contained in:
Adam Porter 2019-10-19 02:04:04 -05:00
parent d5c26b7f60
commit 7d321630a0

View file

@ -241,7 +241,9 @@ RESULTS should be a list of strings as returned by
(expect (org-ql--plain-query "!moon tags:universe")
:to-equal '(and (not (regexp "moon")) (tags "universe")))
(expect (org-ql--plain-query "mars !ts:on=today")
:to-equal '(and (regexp "mars") (not (ts :on "today")))))
:to-equal '(and (regexp "mars") (not (ts :on "today"))))
(expect (org-ql--plain-query "!\"quoted phrase\"")
:to-equal '(not (regexp "quoted phrase"))))
(it "Regexp predicates"
(expect (org-ql--plain-query "scheduled")
;; No colon after keyword, so not a predicate query.