Tests: (src) More normal forms
This commit is contained in:
parent
1fdad05fef
commit
2ae60f8dc5
1 changed files with 4 additions and 1 deletions
|
|
@ -328,7 +328,10 @@ with keyword arg NOW in PLIST."
|
||||||
(expect (org-ql--normalize-query '(src :regexps ("foo") :lang "bar"))
|
(expect (org-ql--normalize-query '(src :regexps ("foo") :lang "bar"))
|
||||||
:to-equal '(src :lang "bar" :regexps '("foo")))
|
:to-equal '(src :lang "bar" :regexps '("foo")))
|
||||||
(expect (org-ql--normalize-query '(src :regexps ("foo") :lang))
|
(expect (org-ql--normalize-query '(src :regexps ("foo") :lang))
|
||||||
:to-equal '(src :regexps '("foo")))))
|
:to-equal '(src :regexps '("foo"))))
|
||||||
|
(it "normalizes just the :lang keyword arg"
|
||||||
|
(expect (org-ql--normalize-query '(src :lang "bar"))
|
||||||
|
:to-equal '(src :lang "bar" :regexps 'nil))))
|
||||||
|
|
||||||
(describe "(tags-inherited)"
|
(describe "(tags-inherited)"
|
||||||
(it "handles 0 arguments"
|
(it "handles 0 arguments"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue