Pārlūkot izejas kodu

test-org: Add test

* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add test.
Nicolas Goaziou 8 gadi atpakaļ
vecāks
revīzija
8c08ee0f8d
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      testing/lisp/test-org.el

+ 4 - 0
testing/lisp/test-org.el

@@ -1313,6 +1313,10 @@
 
 (ert-deftest test-org/clone-with-time-shift ()
   "Test `org-clone-subtree-with-time-shift'."
+  ;; Raise an error before first heading.
+  (should-error
+   (org-test-with-temp-text ""
+     (org-clone-subtree-with-time-shift 1)))
   ;; Clone non-repeating once.
   (should
    (equal "\