* test-utf7.el: New file.
authorkaoru <kaoru>
Wed, 29 Aug 2001 10:26:41 +0000 (10:26 +0000)
committerkaoru <kaoru>
Wed, 29 Aug 2001 10:26:41 +0000 (10:26 +0000)
(test-utf7-encode-string, test-utf7-decode-string): New testcases.

tests/ChangeLog
tests/test-utf7.el [new file with mode: 0644]

index 6b48d02..b7ef3ae 100644 (file)
@@ -1,5 +1,8 @@
 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.
diff --git a/tests/test-utf7.el b/tests/test-utf7.el
new file mode 100644 (file)
index 0000000..6bc2364
--- /dev/null
@@ -0,0 +1,16 @@
+(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-"))))