Skip to content

Commit 8bb1739

Browse files
committed
Tests: (src) Normalization with no args
Closes #293. Thanks to Akira Komamura (@akirak) for reporting.
1 parent 0d9940c commit 8bb1739

File tree

3 files changed

+35
-31
lines changed

3 files changed

+35
-31
lines changed

README.org

+1-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ Simple links may also be written manually in either sexp or non-sexp form, like:
557557
+ Predicate ~src~ now matches case-insensitively.
558558

559559
*Fixed*
560-
+ Predicate ~src~'s matching of begin/end block lines, normalization of arguments, and handling in non-sexp queries.
560+
+ Predicate ~src~'s matching of begin/end block lines, normalization of arguments, and handling in non-sexp queries. (Thanks to [[https://github.com/akirak][Akira Komamura]] for reporting.)
561561
+ Predicate ~src~'s behavior with various arguments.
562562

563563
*Internal*

org-ql.info

+31-30
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,8 @@ File: README.info, Node: 07-pre, Next: 063, Up: Changelog
10491049

10501050
*Fixed*
10511051
• Predicate ‘src’’s matching of begin/end block lines, normalization
1052-
of arguments, and handling in non-sexp queries.
1052+
of arguments, and handling in non-sexp queries. (Thanks to Akira
1053+
Komamura (https://github.com/akirak) for reporting.)
10531054
• Predicate ‘src’’s behavior with various arguments.
10541055

10551056
*Internal*
@@ -1726,35 +1727,35 @@ Node: Links37140
17261727
Node: Tips37827
17271728
Node: Changelog38151
17281729
Node: 07-pre38934
1729-
Node: 06341323
1730-
Node: 06241858
1731-
Node: 06142163
1732-
Node: 0642731
1733-
Node: 05245785
1734-
Node: 05146085
1735-
Node: 0546508
1736-
Node: 04948037
1737-
Node: 04848317
1738-
Node: 04748666
1739-
Node: 04649075
1740-
Node: 04549483
1741-
Node: 04449844
1742-
Node: 04350203
1743-
Node: 04250406
1744-
Node: 04150567
1745-
Node: 0450814
1746-
Node: 03254915
1747-
Node: 03155318
1748-
Node: 0355515
1749-
Node: 02358815
1750-
Node: 02259049
1751-
Node: 02159329
1752-
Node: 0259534
1753-
Node: 0163612
1754-
Node: Notes63713
1755-
Node: Comparison with Org Agenda searches63875
1756-
Node: org-sidebar64764
1757-
Node: License65043
1730+
Node: 06341399
1731+
Node: 06241934
1732+
Node: 06142239
1733+
Node: 0642807
1734+
Node: 05245861
1735+
Node: 05146161
1736+
Node: 0546584
1737+
Node: 04948113
1738+
Node: 04848393
1739+
Node: 04748742
1740+
Node: 04649151
1741+
Node: 04549559
1742+
Node: 04449920
1743+
Node: 04350279
1744+
Node: 04250482
1745+
Node: 04150643
1746+
Node: 0450890
1747+
Node: 03254991
1748+
Node: 03155394
1749+
Node: 0355591
1750+
Node: 02358891
1751+
Node: 02259125
1752+
Node: 02159405
1753+
Node: 0259610
1754+
Node: 0163688
1755+
Node: Notes63789
1756+
Node: Comparison with Org Agenda searches63951
1757+
Node: org-sidebar64840
1758+
Node: License65119
17581759

17591760
End Tag Table
17601761

tests/test-org-ql.el

+3
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ with keyword arg NOW in PLIST."
325325
(it "normalizes non-keyword args with a :lang keyword arg to keywords"
326326
(expect (org-ql--normalize-query '(src "foo" "bar" :lang "baz"))
327327
:to-equal '(src :lang "baz" :regexps '("foo" "bar"))))
328+
(it "normalizes zero args without looping"
329+
(expect (org-ql--normalize-query '(src))
330+
:to-equal '(src)))
328331
(it "normalizes all-keyword args without looping"
329332
(expect (org-ql--normalize-query '(src :regexps ("foo") :lang "bar"))
330333
:to-equal '(src :lang "bar" :regexps '("foo")))

0 commit comments

Comments
 (0)