0
0
Fork 1
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:
Nicolas Goaziou 2020-05-08 00:50:16 +02:00
parent 0edd9aee38
commit a3d23b3a97

View file

@ -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