aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2023-09-23 09:32:57 -0400
committerEli Zaretskii2023-09-23 09:32:57 -0400
commitcc8726d2c8bc0e3b67cb8b97e388f9339bea0f96 (patch)
treea733c18c2a7c050fff3dde551b17279974238559 /test
parent36e78f14804c658568791497733d3fcaaacae4cf (diff)
parent6bc3800000c6d4ed87330df5eee0958e29aa6521 (diff)
downloademacs-cc8726d2c8bc0e3b67cb8b97e388f9339bea0f96.tar.gz
emacs-cc8726d2c8bc0e3b67cb8b97e388f9339bea0f96.zip
Merge from origin/emacs-29
6bc3800000c Ensure ucs-names is consistent with Unicode names 93134bb9c2f Make key-translate actually work 85f49a9bc8b Update to Org 9.6.9 2826c26537c Add leim subdirectories to emacs package
Diffstat (limited to 'test')
-rw-r--r--test/lisp/international/mule-tests.el24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/lisp/international/mule-tests.el b/test/lisp/international/mule-tests.el
index 3e0c5bf9f4b..4dc099a18af 100644
--- a/test/lisp/international/mule-tests.el
+++ b/test/lisp/international/mule-tests.el
@@ -49,6 +49,30 @@
49 (kbd "C-x RET c u t f - 8 RET C-u C-u c a b RET") 49 (kbd "C-x RET c u t f - 8 RET C-u C-u c a b RET")
50 (read-string "prompt:")))))) 50 (read-string "prompt:"))))))
51 51
52;;Bug#65997, ensure that old-names haven't overriden new names.
53(ert-deftest mule-cmds-tests--ucs-names-old-name-override ()
54 (let (code-points)
55 (dotimes (u (1+ (max-char 'ucs)))
56 (when-let* ((name (get-char-code-property u 'name))
57 (c (char-from-name name)))
58 (when (and (not (<= #xD800 u #xDFFF))
59 (not (= c u)))
60 (push (format "%X" u) code-points))))
61 (setq code-points (nreverse code-points))
62 (should (null code-points))))
63
64;; Bug#65997, ensure that all codepoints with names are in '(ucs-names)'.
65(ert-deftest mule-cmds-tests--ucs-names-missing-names ()
66 (let (code-points)
67 (dotimes (u (1+ (max-char 'ucs)))
68 (when-let ((name (get-char-code-property u 'name)))
69 (when (and (not (<= #xD800 u #xDFFF))
70 (not (<= #x18800 u #x18AFF))
71 (not (char-from-name name)))
72 (push (format "%X" u) code-points))))
73 (setq code-points (nreverse code-points))
74 (should (null code-points))))
75
52(ert-deftest mule-utf-7 () 76(ert-deftest mule-utf-7 ()
53 ;; utf-7 and utf-7-imap are not ASCII-compatible. 77 ;; utf-7 and utf-7-imap are not ASCII-compatible.
54 (should-not (coding-system-get 'utf-7 :ascii-compatible-p)) 78 (should-not (coding-system-get 'utf-7 :ascii-compatible-p))