Make substitute-command-keys regexp tests more strict

* test/lisp/help-tests.el (with-substitute-command-keys-test): Make
regexp tests more strict.
This commit is contained in:
Stefan Kangas 2021-11-06 19:37:46 +01:00
parent b8b0e529a8
commit 2893ea4e4c

View file

@ -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))