mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 21:37:50 +00:00
Add test for `org-find-property'
* testing/lisp/test-org.el (test-org/find-property): Add test.
This commit is contained in:
parent
0edd9aee38
commit
a3d23b3a97
|
@ -5204,6 +5204,11 @@ Paragraph<point>"
|
|||
(= 1
|
||||
(org-test-with-temp-text "* H\n:PROPERTIES:\n:PROP: value\n:END:"
|
||||
(org-find-property "prop"))))
|
||||
;; Find properties in top-level property drawer.
|
||||
(should
|
||||
(= 1
|
||||
(org-test-with-temp-text ":PROPERTIES:\n:PROP: value\n:END:"
|
||||
(org-find-property "prop"))))
|
||||
;; Ignore false positives.
|
||||
(should
|
||||
(= 27
|
||||
|
|
Loading…
Reference in a new issue