test-org-element: Fix test

* testing/lisp/test-org-element.el (test-org-element/inlinetask-parser):
  Fix test: degenerate inlinetasks cannot contain planning info.
This commit is contained in:
Nicolas Goaziou 2014-12-24 10:47:46 +01:00
parent 4947d25c7c
commit 92c0a1982b

View file

@ -1147,6 +1147,13 @@ Contents
(should (should
(org-test-with-temp-text " (org-test-with-temp-text "
*************** Task *************** Task
DEADLINE: <2012-03-29 thu.>
*************** END"
(forward-line)
(org-element-property :deadline (org-element-at-point))))
(should-not
(org-test-with-temp-text "
*************** Task
DEADLINE: <2012-03-29 thu.>" DEADLINE: <2012-03-29 thu.>"
(forward-line) (forward-line)
(org-element-property :deadline (org-element-at-point)))) (org-element-property :deadline (org-element-at-point))))