Add test for text-char-description
* test/src/keymap-tests.el (keymap-text-char-description): New test.
This commit is contained in:
parent
101bbd1392
commit
6866cf9c37
1 changed files with 15 additions and 0 deletions
|
|
@ -407,6 +407,21 @@ g .. h foo
|
|||
(define-key child [?a] nil t)
|
||||
(should (eq (lookup-key child [?a]) 'foo))))
|
||||
|
||||
(ert-deftest keymap-text-char-description ()
|
||||
(should (equal (text-char-description ?a) "a"))
|
||||
(should (equal (text-char-description ?\s) " "))
|
||||
(should (equal (text-char-description ?\t) "^I"))
|
||||
(should (equal (text-char-description ?\^C) "^C"))
|
||||
(should (equal (text-char-description ?\^?) "^?"))
|
||||
(should (equal (text-char-description #x80) ""))
|
||||
(should (equal (text-char-description ?å) "å"))
|
||||
(should (equal (text-char-description ?Ş) "Ş"))
|
||||
(should (equal (text-char-description ?Ā) "Ā"))
|
||||
(should-error (text-char-description "c"))
|
||||
(should-error (text-char-description [?\C-x ?l]))
|
||||
(should-error (text-char-description ?\M-c))
|
||||
(should-error (text-char-description ?\s-c)))
|
||||
|
||||
(provide 'keymap-tests)
|
||||
|
||||
;;; keymap-tests.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue