emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2893ea4: Make substitute-command-keys regexp tests more strict


From: Stefan Kangas
Subject: master 2893ea4: Make substitute-command-keys regexp tests more strict
Date: Sat, 6 Nov 2021 14:40:17 -0400 (EDT)

branch: master
commit 2893ea4e4c8b613aad3cf9c789c73a6a6674435c
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Make substitute-command-keys regexp tests more strict
    
    * test/lisp/help-tests.el (with-substitute-command-keys-test): Make
    regexp tests more strict.
---
 test/lisp/help-tests.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lisp/help-tests.el b/test/lisp/help-tests.el
index a2573c9..a331ec4 100644
--- a/test/lisp/help-tests.el
+++ b/test/lisp/help-tests.el
@@ -65,7 +65,7 @@
                                 result))))
               (test-re
                (lambda (orig regexp)
-                 (should (string-match (concat "^" regexp "$")
+                 (should (string-match (concat "\\`" regexp "\\'")
                                        (substitute-command-keys orig))))))
      ,@body))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]