Tests: Tidy

This commit is contained in:
Adam Porter 2020-02-24 01:48:09 -06:00
parent 9a56141f6c
commit 9b2ff276a0

View file

@ -218,13 +218,16 @@ RESULTS should be a list of strings as returned by
(describe "Query pre-processing" (describe "Query pre-processing"
(it "level:" (describe "(level)"
(expect (org-ql--pre-process-query '(level "1")) (it "with one level"
:to-equal '(level 1)) (expect (org-ql--pre-process-query '(level "1"))
(expect (org-ql--pre-process-query '(level "1" "2")) :to-equal '(level 1)))
:to-equal '(level 1 2)) (it "with two levels"
(expect (org-ql--pre-process-query '(level ">" "1")) (expect (org-ql--pre-process-query '(level "1" "2"))
:to-equal '(level > 1))) :to-equal '(level 1 2)))
(it "with a comparator and a level"
(expect (org-ql--pre-process-query '(level ">" "1"))
:to-equal '(level > 1))))
(describe "(link)" (describe "(link)"
(it "with one argument" (it "with one argument"