mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:07:46 +00:00
Remove no longer appropriate test
* testing/lisp/test-org.el (test-org/find-property): Remove a test.
For efficiency reasons, since
7a717f8f04
, `org-find-property' cannot
match accumulated properties. It still could be done with another
optional argument, at the cost of a slower algorithm, but is not
needed so far.
This commit is contained in:
parent
80bccca4e2
commit
17752c379e
|
@ -2763,13 +2763,7 @@ Text.
|
||||||
(= 31
|
(= 31
|
||||||
(org-test-with-temp-text
|
(org-test-with-temp-text
|
||||||
"* H1\n:PROPERTIES:\n:A: 1\n:END:\n* H2\n:PROPERTIES:\n:A: nil\n:END:"
|
"* H1\n:PROPERTIES:\n:A: 1\n:END:\n* H2\n:PROPERTIES:\n:A: nil\n:END:"
|
||||||
(org-find-property "A" "nil"))))
|
(org-find-property "A" "nil")))))
|
||||||
;; Optional argument is matched against real value, including PROP+
|
|
||||||
;; syntax.
|
|
||||||
(should
|
|
||||||
(= 1
|
|
||||||
(org-test-with-temp-text "* H1\n:PROPERTIES:\n:A: 1\n:A+: 2\n:END:"
|
|
||||||
(org-find-property "A" "1 2")))))
|
|
||||||
|
|
||||||
(ert-deftest test-org/entry-delete ()
|
(ert-deftest test-org/entry-delete ()
|
||||||
"Test `org-entry-delete' specifications."
|
"Test `org-entry-delete' specifications."
|
||||||
|
|
Loading…
Reference in a new issue