[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bind-map 56e4a914c2 82/97: Fix tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bind-map 56e4a914c2 82/97: Fix tests |
Date: |
Thu, 20 Jan 2022 07:59:27 -0500 (EST) |
branch: elpa/bind-map
commit 56e4a914c2b8cf4e7635a3ddaf8ff3ee62aacdba
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>
Fix tests
---
bind-map-tests.el | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/bind-map-tests.el b/bind-map-tests.el
index 0974b50df5..c83149cf2d 100644
--- a/bind-map-tests.el
+++ b/bind-map-tests.el
@@ -22,12 +22,12 @@
(ert-deftest bind-map-test-global-keys ()
"Test binding in global maps."
- (let ((tmpmap (make-sparse-keymap)))
- (bind-map tmpmap
+ (let ((tmpmap1 (make-sparse-keymap)))
+ (bind-map tmpmap1
:keys ("C-a")
:evil-keys ("a")
:evil-states (motion))
- (define-key tmpmap "a" "b")
+ (define-key tmpmap1 "a" "b")
(should (keymapp (lookup-key global-map "\C-a")))
(should (string= (lookup-key global-map "\C-aa") "b"))
(should (keymapp (lookup-key evil-motion-state-map "a")))
@@ -36,53 +36,53 @@
(ert-deftest bind-map-test-major-mode-keys ()
"Test binding for major-modes."
- (let ((tmpmap (make-sparse-keymap))
- (tmpmap-root-map (make-sparse-keymap))
- tmpmap-active
- tmpmap-prefix
+ (let ((tmpmap2 (make-sparse-keymap))
+ (tmpmap2-root-map (make-sparse-keymap))
+ tmpmap2-active
+ tmpmap2-prefix
bind-map-major-modes-alist
minor-mode-map-alist)
- (bind-map tmpmap
+ (bind-map tmpmap2
:major-modes (emacs-lisp-mode)
:keys ("C-a")
:evil-keys ("a")
:evil-states (motion))
(evil-normalize-keymaps)
(emacs-lisp-mode)
- (define-key tmpmap "a" "b")
+ (define-key tmpmap2 "a" "b")
(message "%s" (pp bind-map-major-modes-alist))
- (should (equal (cdr (assoc 'tmpmap-active bind-map-major-modes-alist))
+ (should (equal (cdr (assoc 'tmpmap2-active bind-map-major-modes-alist))
'(emacs-lisp-mode)))
- (should tmpmap-active)
+ (should tmpmap2-active)
(should (string= (key-binding "\C-aa") "b"))
- (should (keymapp (lookup-key (evil-get-auxiliary-keymap tmpmap-root-map
'motion) "a")))
- (should (string= (lookup-key (evil-get-auxiliary-keymap tmpmap-root-map
'motion) "aa") "b"))
+ (should (keymapp (lookup-key (evil-get-auxiliary-keymap tmpmap2-root-map
'motion) "a")))
+ (should (string= (lookup-key (evil-get-auxiliary-keymap tmpmap2-root-map
'motion) "aa") "b"))
(should (string= "b" (key-binding "\C-aa")))))
(ert-deftest bind-map-test-minor-mode-keys ()
"Test binding for minor-modes."
- (let ((tmpmap (make-sparse-keymap))
- (tmpmap-root-map (make-sparse-keymap))
+ (let ((tmpmap3 (make-sparse-keymap))
+ (tmpmap3-root-map (make-sparse-keymap))
(fake-minor-mode t)
minor-mode-map-alist)
- (bind-map tmpmap
+ (bind-map tmpmap3
:minor-modes (fake-minor-mode)
:keys ("C-a")
:evil-keys ("a")
:evil-states (motion))
(evil-normalize-keymaps)
- (define-key tmpmap "a" "b")
+ (define-key tmpmap3 "a" "b")
(should (string= (key-binding "\C-aa") "b"))))
(ert-deftest bind-map-multiple-declarations ()
- (let ((tmpmap (make-sparse-keymap))
- tmpmap-root-map
+ (let ((tmpmap4 (make-sparse-keymap))
+ tmpmap4-root-map
minor-mode-map-alist bind-map-major-modes-alist)
- (bind-map tmpmap
+ (bind-map tmpmap4
:major-modes (mm1 mm2))
- (bind-map tmpmap
+ (bind-map tmpmap4
:major-modes (mm3 mm4 mm5))
- (bind-map tmpmap
+ (bind-map tmpmap4
:major-modes (mm6))
- (should (equal (cdr (assq 'tmpmap-active bind-map-major-modes-alist))
+ (should (equal (cdr (assq 'tmpmap4-active bind-map-major-modes-alist))
'(mm1 mm2 mm3 mm4 mm5 mm6)))))
- [nongnu] elpa/bind-map db9d72efcd 31/97: Better version of bind-map-key, (continued)
- [nongnu] elpa/bind-map db9d72efcd 31/97: Better version of bind-map-key, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 76f742191b 24/97: Add gitignore, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 74e9defb60 25/97: Fix doctrings for recent additions, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 38dc69ab80 49/97: Make sure major-mode keys are activated initially, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map df2f5081e1 27/97: Use custom kbd command, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b30c22f7f9 33/97: Report symbol name in previously added error msg, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 7ab7ae8dd3 62/97: Fix cask file, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 8e3df1f4cf 36/97: Use add-to-list for mm list and defvar prefix, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ce11d259bf 42/97: Update commentary to match README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 32a3361b3b 67/97: Bring back evil-define-minor-mode-key, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 56e4a914c2 82/97: Fix tests,
ELPA Syncer <=
- [nongnu] elpa/bind-map 797c2124f8 86/97: Restructure tests, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6e1ba6edbd 94/97: Update README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 873c26d467 89/97: Get basic inheritance tests working, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 6977e0fec5 96/97: Bump version to 1.1.2, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map b59d7bbab7 40/97: Add note about dependence on evil to README, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 5c6f17939c 28/97: Get rid of eval-after-loads to fix evil bindings, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 80c38c4052 61/97: Add badges, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 4cccf8fb82 23/97: Add configuration var for default map suffix, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 7a4d329a60 18/97: Correct wrong package names, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 4cf9dfd1cb 81/97: Fix declare form, ELPA Syncer, 2022/01/20