emacs-diffs
[Top][All Lists]
Advanced

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

master f5cfe5a 2/2: * test/lisp/subr-tests.el (subr-test-kbd): New test.


From: Stefan Kangas
Subject: master f5cfe5a 2/2: * test/lisp/subr-tests.el (subr-test-kbd): New test.
Date: Fri, 8 Jan 2021 08:50:16 -0500 (EST)

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

    * test/lisp/subr-tests.el (subr-test-kbd): New test.
---
 test/lisp/subr-tests.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el
index 8d19a26..54f6eb4 100644
--- a/test/lisp/subr-tests.el
+++ b/test/lisp/subr-tests.el
@@ -61,6 +61,18 @@
                      (quote
                       (0 font-lock-keyword-face))))))))
 
+
+;;;; Keymap support.
+
+(ert-deftest subr-test-kbd ()
+  (should (equal (kbd "f") "f"))
+  (should (equal (kbd "F1") "F1"))
+  (should (equal (kbd "RET") "\C-m"))
+  (should (equal (kbd "C-x a") "\C-xa")))
+
+
+;;;; Mode hooks.
+
 (defalias 'subr-tests--parent-mode
   (if (fboundp 'prog-mode) 'prog-mode 'fundamental-mode))
 



reply via email to

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