Tests: Tidy
This commit is contained in:
parent
9a56141f6c
commit
9b2ff276a0
1 changed files with 10 additions and 7 deletions
|
|
@ -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)"
|
||||||
|
(it "with one level"
|
||||||
(expect (org-ql--pre-process-query '(level "1"))
|
(expect (org-ql--pre-process-query '(level "1"))
|
||||||
:to-equal '(level 1))
|
:to-equal '(level 1)))
|
||||||
|
(it "with two levels"
|
||||||
(expect (org-ql--pre-process-query '(level "1" "2"))
|
(expect (org-ql--pre-process-query '(level "1" "2"))
|
||||||
:to-equal '(level 1 2))
|
:to-equal '(level 1 2)))
|
||||||
|
(it "with a comparator and a level"
|
||||||
(expect (org-ql--pre-process-query '(level ">" "1"))
|
(expect (org-ql--pre-process-query '(level ">" "1"))
|
||||||
:to-equal '(level > 1)))
|
:to-equal '(level > 1))))
|
||||||
|
|
||||||
(describe "(link)"
|
(describe "(link)"
|
||||||
(it "with one argument"
|
(it "with one argument"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue