(test-utf7-encode-string, test-utf7-decode-string): New testcases.
2001-08-29 TAKAHASHI Kaoru <kaoru@kaisei.org>
+ * test-utf7.el: New file.
+ (test-utf7-encode-string, test-utf7-decode-string): New testcases.
+
* test-env.el: New file.
(test-apel-version, test-base64-encode-1)
(test-base64-encode-2, test-base64-encode-3): New testcases.
--- /dev/null
+(require 'lunit)
+(require 'utf7)
+
+(luna-define-class test-utf7 (lunit-test-case))
+
+(luna-define-method test-utf7-encode-string ((case test-utf7))
+ (lunit-assert
+ (string=
+ "+ZeVnLIqe-"
+ (utf7-encode-string "\e$BF|K\8l\e(B")))) ; FIXME!!: don't care coding system
+
+(luna-define-method test-utf7-decode-string ((case test-utf7))
+ (lunit-assert
+ (string=
+ "\e$BF|K\8l\e(B" ; FIXME!!: don't care coding system
+ (utf7-decode-string "+ZeVnLIqe-"))))