소스 검색

org-export: Add test

* testing/lisp/test-org-export.el: Add test for subtree options.
Nicolas Goaziou 13 년 전
부모
커밋
3df18bef9f
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      testing/lisp/test-org-export.el

+ 9 - 1
testing/lisp/test-org-export.el

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