* test-utf7.el (toplevel): Use `fboundp' instead of `boundp'.
Fix (require 'utf7) order for Mule-UCS.
- Add coding: comment.
-
(test-utf7-decode-string-plus): New testcase.
(test-utf7-decode-string-noconv): Ditto.
(test-utf7-encode-string-plus): Ditto.
(test-utf7-encode-string-noconv): Ditto.
+ (test-utf7-decode-string-nihongo): Rename from
+ `test-utf7-decode-string'. Use `make-char'.
+ (test-utf7-encode-string-nihongo): Rename from
+ `test-utf7-encode-string'. Use `make-char'.
+
2008-02-19 TAKAHASHI Kaoru <kaoru@kaisei.org>
-;; -*- coding: iso-2022-jp -*-
(require 'lunit)
;; Emacs 21
(luna-define-class test-utf7 (lunit-test-case))
-(luna-define-method test-utf7-encode-string ((case test-utf7))
+(luna-define-method test-utf7-encode-string-nihongo ((case test-utf7))
(lunit-assert
(string=
"+ZeVnLIqe-"
- (utf7-encode-string "\e$BF|K\8l\e(B")))) ; FIXME!!: don't care coding system
+ (utf7-encode-string
+ (string (make-char 'japanese-jisx0208 70 124)
+ (make-char 'japanese-jisx0208 75 92)
+ (make-char 'japanese-jisx0208 56 108))))))
(luna-define-method test-utf7-encode-string-plus ((case test-utf7))
(lunit-assert
(string= "=" (utf7-encode-string "="))))
-(luna-define-method test-utf7-decode-string ((case test-utf7))
+(luna-define-method test-utf7-decode-string-nihongo ((case test-utf7))
(lunit-assert
(string=
- "\e$BF|K\8l\e(B" ; FIXME!!: don't care coding system
+ (string (make-char 'japanese-jisx0208 70 124)
+ (make-char 'japanese-jisx0208 75 92)
+ (make-char 'japanese-jisx0208 56 108))
(utf7-decode-string "+ZeVnLIqe-"))))
(luna-define-method test-utf7-decode-string-plus ((case test-utf7))