From 7d321630a064864d77a760015169c206e077be9b Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Sat, 19 Oct 2019 02:04:04 -0500 Subject: [PATCH] Test: Add test for negated, plain quoted phrase 0.3.2 doesn't have negation, and this should be tested with negation. --- tests/test-org-ql.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-org-ql.el b/tests/test-org-ql.el index 5f1f532..9ae17a3 100644 --- a/tests/test-org-ql.el +++ b/tests/test-org-ql.el @@ -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.