org-export: Add test

* testing/lisp/test-org-export.el: Add test for subtree options.
This commit is contained in:
Nicolas Goaziou 2012-07-25 12:25:58 +02:00
parent 8d98835a3c
commit 3df18bef9f
1 changed files with 9 additions and 1 deletions

View File

@ -132,7 +132,7 @@ Paragraph"
(forward-line)
(should
(= 2 (plist-get (org-export-get-environment nil t) :headline-levels))))
;; EXPORT DATE.
;; EXPORT_DATE.
(org-test-with-temp-text "#+DATE: today
* Headline
:PROPERTIES:
@ -140,6 +140,14 @@ Paragraph"
:END:
Paragraph"
(forward-line)
(should (equal (plist-get (org-export-get-environment nil t) :date)
'("29-03-2012"))))
;; Export properties are case-insensitive.
(org-test-with-temp-text "* Headline
:PROPERTIES:
:EXPORT_Date: 29-03-2012
:END:
Paragraph"
(should (equal (plist-get (org-export-get-environment nil t) :date)
'("29-03-2012")))))