Add multi/unibyte string tests for key-description
* test/src/keymap-tests.el (keymap--key-description): Add multi/unibyte tests. This is to check the fix for Bug#59305.
This commit is contained in:
@@ -357,6 +357,13 @@ g .. h foo
|
||||
"C-x <right>"))
|
||||
(should (equal (key-description [M-H-right] [?\C-x])
|
||||
"C-x M-H-<right>"))
|
||||
;; Treat latin-1 correctly vs meta. (Bug#59305)
|
||||
(should (equal (key-description "olá")
|
||||
"o l á"))
|
||||
(should (equal (key-description (string ?o ?l ?á))
|
||||
"o l á"))
|
||||
(should (equal (key-description (unibyte-string ?o ?l ?á))
|
||||
"o l M-a"))
|
||||
(should (equal (single-key-description 'home)
|
||||
"<home>"))
|
||||
(should (equal (single-key-description 'home t)
|
||||
|
||||
Reference in New Issue
Block a user