(M-28907): Unify M028907.
[chise/xemacs-chise.git] / tests / automated / mule-tests.el
index b73163c..6348a51 100644 (file)
@@ -299,6 +299,7 @@ the Assert macro checks for correctness."
         (file-name-coding-system 'iso-8859-2))
     ;; This is how you suppress output from `message', called by `write-region'
     (flet ((append-message (&rest args) ()))
+      (Assert (not (equal name1 name2)))
       (Assert (not (file-exists-p name1)))
       (write-region (point-min) (point-max) name1)
       (Assert (file-exists-p name1))
@@ -312,4 +313,16 @@ the Assert macro checks for correctness."
 
   ;; Add many more file operation tests here...
 
+  ;;---------------------------------------------------------------
+  ;; Test Unicode-related functions
+  ;;---------------------------------------------------------------
+  (let* ((scaron (make-char 'latin-iso8859-2 57)))
+    (loop for code in '(#x0000 #x2222 #x4444 #xffff) do
+      (progn
+       (set-ucs-char code scaron)
+       (Assert (eq scaron (ucs-char code)))))
+  
+    (Assert (eq nil (set-ucs-char #x1ffff scaron)))
+    (Check-Error wrong-type-argument (set-ucs-char -10000 scaron)))
+  
   )