This change was suggested in <87wm8cfgjn.fsf@localhost>, but I forgot to change this test in the subsequent revisions unfortunately.
From 690189fc63309a70de6535f168bf58b45a9323bf Mon Sep 17 00:00:00 2001
From: Lukas Epple <em...@lukasepple.de>
Date: Sun, 3 Aug 2025 15:37:09 +0200
Subject: [PATCH] test-ox-html.el (ox-html/html5-fancy-timestamps): use
 search-forward

* testing/lisp/test-ox-html.el (ox-html/html5-fancy-timestamps):
Since a full string is expected to part of the output, using rx is
overkill. Switch to search-forward which the other timestamp related
tests use.
---
 testing/lisp/test-ox-html.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/lisp/test-ox-html.el b/testing/lisp/test-ox-html.el
index 15b09a31f..fdd40ae98 100644
--- a/testing/lisp/test-ox-html.el
+++ b/testing/lisp/test-ox-html.el
@@ -968,7 +968,7 @@ SCHEDULED: <2025-03-26 Wed> DEADLINE: <2025-03-27 Thu 13:00> CLOSED: [2025-03-25
        nil nil nil t)
      (with-current-buffer export-buffer
        (mapc (lambda (s)
-               (should (= 1 (how-many (rx-to-string s)))))
+               (should (search-forward s nil t)))
              '("<span class=\"timestamp-wrapper\"><time class=\"timestamp\" datetime=\"2025-06-25\">[2025-06-25 Wed]</time></span>"
                "<span class=\"timestamp-wrapper\"><time class=\"timestamp\" datetime=\"2025-06-25T19:10:00\">&lt;2025-06-25 Wed 19:10&gt;</time></span>"))))))
 
-- 
2.50.1

Reply via email to