Tests: Fix function definer
Works correctly interactively now.
This commit is contained in:
parent
7e5cb33031
commit
4db4e411a0
1 changed files with 7 additions and 6 deletions
|
|
@ -97,12 +97,13 @@ Based on Buttercup macro `it'."
|
||||||
|
|
||||||
(before-all
|
(before-all
|
||||||
|
|
||||||
|
(if (version< (org-version) "9.1")
|
||||||
(defun org-ql-test-org-get-heading ()
|
(defun org-ql-test-org-get-heading ()
|
||||||
;; For Org 9.0.5.
|
;; For Org 9.0.5.
|
||||||
(substring-no-properties (org-get-heading t t)))
|
(substring-no-properties (org-get-heading t t)))
|
||||||
(defun org-ql-test-org-get-heading ()
|
(defun org-ql-test-org-get-heading ()
|
||||||
;; For Org 9.1.9.
|
;; For Org 9.1.9.
|
||||||
(substring-no-properties (org-get-heading t t t t)))
|
(substring-no-properties (org-get-heading t t t t))))
|
||||||
|
|
||||||
(setq test-buffer (find-file-noselect (concat default-directory "tests/data.org"))
|
(setq test-buffer (find-file-noselect (concat default-directory "tests/data.org"))
|
||||||
num-headings (with-current-buffer test-buffer
|
num-headings (with-current-buffer test-buffer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue