[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 1d35ebd93c 2/5: test-org-clok/org-clock-update-time
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 1d35ebd93c 2/5: test-org-clok/org-clock-update-time-maybe: Fix test for non-English LANG |
Date: |
Fri, 15 Sep 2023 06:58:33 -0400 (EDT) |
branch: externals/org
commit 1d35ebd93c26a511f42555e1eb54fc7f8028a124
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
test-org-clok/org-clock-update-time-maybe: Fix test for non-English LANG
* testing/lisp/test-org-clock.el
(test-org-clok/org-clock-update-time-maybe):
Do not assert English day names.
Reported-by: emacs@supporter.mailer.me
---
testing/lisp/test-org-clock.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/testing/lisp/test-org-clock.el b/testing/lisp/test-org-clock.el
index ff547a0942..44c62e7bc8 100644
--- a/testing/lisp/test-org-clock.el
+++ b/testing/lisp/test-org-clock.el
@@ -122,7 +122,10 @@ the buffer."
"Test `org-clock-update-time-maybe' specifications."
(should
(equal
- "CLOCK: [2023-04-29 Sat 00:00]--[2023-05-04 Thu 01:00] => 121:00"
+ (format
+ "CLOCK: [2023-04-29 %s 00:00]--[2023-05-04 %s 01:00] => 121:00"
+ (org-test-get-day-name "Sat")
+ (org-test-get-day-name "Thu"))
(org-test-with-temp-text
"CLOCK: [2023-04-29 Sat 00:00]--[2023-05-04 Thu 01:00]"
(should (org-clock-update-time-maybe))