]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix simple-tests when run noninteractively
authorMattias Engdegård <mattiase@acm.org>
Fri, 18 Nov 2022 11:09:46 +0000 (12:09 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 18 Nov 2022 11:12:09 +0000 (12:12 +0100)
* test/lisp/simple-tests.el
(simple-execute-extended-command--describe-binding-msg):
Bind text-quoting-style explicitly to ensure consistent behaviour
whether or not the test is run interactively.

test/lisp/simple-tests.el

index d067f3e586e0d36a590a81920510ff0f4d93a772..6e48f11fc02309f93dbfd7896fc5a27f8761cf14 100644 (file)
                  "di-n")))
 
 (ert-deftest simple-execute-extended-command--describe-binding-msg ()
-  (should (equal (execute-extended-command--describe-binding-msg
-                  'foo "m" nil)
-                 "You can run the command ‘foo’ with m"))
-  (should (equal (execute-extended-command--describe-binding-msg
-                  'foo [14] nil)
-                 "You can run the command ‘foo’ with C-n"))
-  (should (equal (execute-extended-command--describe-binding-msg
-                  'display-line-numbers-mode nil "di-n")
-                 "You can run the command ‘display-line-numbers-mode’ with M-x di-n")))
+  (let ((text-quoting-style 'grave))
+    (should (equal (execute-extended-command--describe-binding-msg
+                    'foo "m" nil)
+                   "You can run the command `foo' with m"))
+    (should (equal (execute-extended-command--describe-binding-msg
+                    'foo [14] nil)
+                   "You can run the command `foo' with C-n"))
+    (should (equal (execute-extended-command--describe-binding-msg
+                    'display-line-numbers-mode nil "di-n")
+                   "You can run the command `display-line-numbers-mode' with M-x di-n"))))
 
 \f
 ;;; `transpose-sexps'