[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org eefb14f9fa: test-org-clock: Test DWIM update of day
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org eefb14f9fa: test-org-clock: Test DWIM update of days |
Date: |
Sat, 5 Nov 2022 23:57:53 -0400 (EDT) |
branch: externals/org
commit eefb14f9fa73b07cb14a0429953fa55f9c78e1cf
Author: Rudolf Adamkovič <salutis@me.com>
Commit: Ihor Radchenko <yantar92@posteo.net>
test-org-clock: Test DWIM update of days
* testing/listp/test-org-clock (test-org-clock/clock-drawer-dwim): Add
new test for DWIM updates of days for clocks in logbook drawers.
Reported-by: Bruce E. Robertson <brucer42@gmail.com>
Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53393
---
testing/lisp/test-org-clock.el | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/testing/lisp/test-org-clock.el b/testing/lisp/test-org-clock.el
index f992c8d7ad..68286b1744 100644
--- a/testing/lisp/test-org-clock.el
+++ b/testing/lisp/test-org-clock.el
@@ -273,6 +273,22 @@ the buffer."
(org-log-into-drawer nil))
(org-clock-drawer-name))))))
+(ert-deftest test-org-clock/clock-drawer-dwim ()
+ "Test DWIM update of days for clocks in logbook drawers."
+ (should (equal "* Foo
+:LOGBOOK:
+CLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => 0:01
+:END:
+"
+ (org-test-with-temp-text
+ "* Foo
+:LOGBOOK:
+<point>CLOCK: [2022-11-03 ??? 06:00]--[2022-11-03 ??? 06:01] => 0:01
+:END:
+"
+ (org-ctrl-c-ctrl-c)
+ (buffer-string)))))
+
;;; Clocktable
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org eefb14f9fa: test-org-clock: Test DWIM update of days,
ELPA Syncer <=