emacs-diffs
[Top][All Lists]
Advanced

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

master ff5327d: Update keymap-tests after recent changes


From: Lars Ingebrigtsen
Subject: master ff5327d: Update keymap-tests after recent changes
Date: Tue, 2 Nov 2021 10:28:56 -0400 (EDT)

branch: master
commit ff5327d72a68c149fb8ab210e21a1e7bb94fcc55
Author: dickmao <dick.r.chiang@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Update keymap-tests after recent changes
    
    * test/src/keymap-tests.el
    (help--describe-vector/bug-9293-one-shadowed-in-range): Update tests
    for d530f3f9ff.
    (help--describe-vector/bug-9293-same-command-does-not-shadow): Update
    (bug#51567).
---
 test/src/keymap-tests.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/src/keymap-tests.el b/test/src/keymap-tests.el
index d3cb1a6..8e28faf 100644
--- a/test/src/keymap-tests.el
+++ b/test/src/keymap-tests.el
@@ -323,12 +323,12 @@ commit 86c19714b097aa477d339ed99ffb5136c755a046."
     (with-temp-buffer
       (help--describe-vector (cadr orig-map) nil #'help--describe-command
                              t shadow-map orig-map t)
-      (should (equal (buffer-string)
-                     "
+      (should (equal (buffer-substring-no-properties (point-min) (point-max))
+                     (string-replace "\t" "" "
 e              foo
 f              foo  (currently shadowed by `bar')
 g .. h         foo
-")))))
+"))))))
 
 (ert-deftest help--describe-vector/bug-9293-same-command-does-not-shadow ()
   "Check that a command can't be shadowed by the same command."
@@ -349,10 +349,10 @@ g .. h            foo
    (with-temp-buffer
      (help--describe-vector (cadr range-map) nil #'help--describe-command
                             t shadow-map range-map t)
-     (should (equal (buffer-string)
-                    "
+     (should (equal (buffer-substring-no-properties (point-min) (point-max))
+                    (string-replace "\t" "" "
 0 .. 3         foo
-")))))
+"))))))
 
 (ert-deftest keymap--key-description ()
   (should (equal (key-description [right] [?\C-x])



reply via email to

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