X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=tests%2Fautomated%2Fmule-tests.el;h=6348a51cb8ce9aa35a251155eb036fc1a9bb7325;hp=eb2317c44868ba29604904764bceba2a55eff691;hb=59eec5f21669e81977b5b1fe9bf717cab49cf7fb;hpb=032d062ebcb2344e6245cea4214bc09835da97ee diff --git a/tests/automated/mule-tests.el b/tests/automated/mule-tests.el index eb2317c..6348a51 100644 --- a/tests/automated/mule-tests.el +++ b/tests/automated/mule-tests.el @@ -313,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))) + )