From e5298920568e4c5a34589640f11edfa09a98d0d1 Mon Sep 17 00:00:00 2001 From: Morgan Smith Date: Thu, 11 Apr 2024 12:51:18 -0400 Subject: [PATCH 2/2] Test clock times without timestamps * testing/lisp/test-org-clock.el (test-org-clock/clocktable/insert): Add a clock time that does not include timestamps. --- testing/lisp/test-org-clock.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/testing/lisp/test-org-clock.el b/testing/lisp/test-org-clock.el index 44c62e7bc..be8acb529 100644 --- a/testing/lisp/test-org-clock.el +++ b/testing/lisp/test-org-clock.el @@ -345,13 +345,12 @@ CLOCK: [2022-11-03 %s 06:00]--[2022-11-03 %s 06:01] => 0:01 (equal "| Headline | Time | |--------------+--------| -| *Total time* | *1:00* | +| *Total time* | *2:00* | |--------------+--------| -| H1 | 1:00 |" +| H1 | 2:00 |" (org-test-with-temp-text "* H1\n" - (insert (org-test-clock-create-clock ". 1:00" ". 2:00")) - - (goto-line 2) + (insert (org-test-clock-create-clock ". 1:00" ". 2:00") + "CLOCK: => 1:00\n") (require 'org-clock) (org-dynamic-block-insert-dblock "clocktable") -- 2.41.0