branch: externals/org
commit b55e9714533f09c37a230bca12146ad59161f3e4
Author: Lukas Epple <em...@lukasepple.de>
Commit: Ihor Radchenko <yanta...@posteo.net>

    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 15b09a31fa..fdd40ae982 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>"))))))
 

Reply via email to