emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FR] Support headline as a function for file+headline target for org


From: Nafiz Islam
Subject: Re: [FR] Support headline as a function for file+headline target for org-capture-templates
Date: Sat, 11 May 2024 12:02:56 -0400

I see there are a lot of test cases for org-find-olp (which is the function I believe processes the outline path argument).

testing/lisp/test-org.el
2861:(ert-deftest test-org/org-find-olp ()
2862:  "Test `org-find-olp' specifications."
2875:    (should (org-find-olp '("Headline") t))
2876:    (should-error (org-find-olp '("Headline" "Test") t))
2877:    (should-error (org-find-olp '("Headlinealksjd") t))
2878:    (should (org-find-olp '("Headline" "headline2") t))
2879:    (should (org-find-olp '("Headline" "headline3") t))
2880:    (should (org-find-olp '("Headline" "headline3" "headline4") t))
2881:    (should-error (org-find-olp '("Headline" "headline5") t))
2882:    (should (org-find-olp '("Headline" "headline6") t))
2883:    (should (org-find-olp '("Headline" "headline7") t))
2884:    (should (org-find-olp '("Headline" "headline8") t))

How should I go about testing different parameter types such as function and symbol?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]