From 1d35ebd93c26a511f42555e1eb54fc7f8028a124 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 15 Sep 2023 12:00:06 +0300 Subject: [PATCH] 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 ff547a094..44c62e7bc 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))