* test-wl-util.el: New file.
authorkaoru <kaoru>
Tue, 28 Aug 2001 16:18:34 +0000 (16:18 +0000)
committerkaoru <kaoru>
Tue, 28 Aug 2001 16:18:34 +0000 (16:18 +0000)
(test-wl-parse-addresses-1, test-wl-unique-id): New testcases.

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

index a59d43f..8206d10 100644 (file)
@@ -1,6 +1,9 @@
 2001-08-28  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
-       * test-elmo-util.el: New file
+       * test-wl-util.el: New file.
+       (test-wl-parse-addresses-1, test-wl-unique-id): New testcases.
+
+       * test-elmo-util.el: New file.
        (test-elmo-replace-string-as-filename-1): New testcase.
 
        * test-dist.el: New file.
diff --git a/tests/test-wl-util.el b/tests/test-wl-util.el
new file mode 100644 (file)
index 0000000..e8d8389
--- /dev/null
@@ -0,0 +1,18 @@
+(require 'lunit)
+(require 'wl-util)
+
+(luna-define-class test-wl-util (lunit-test-case))
+
+(luna-define-method test-wl-parse-addresses-1 ((case test-wl-util))
+  (lunit-assert
+   (equal
+    '("foo@example.com" "bar@example.com")
+    (wl-parse-addresses "foo@example.com, bar@example.com"))))
+
+
+;; Message-ID
+(luna-define-method test-wl-unique-id ((case test-wl-util))
+  (lunit-assert
+   (not
+    (string= (wl-unique-id)
+            (progn (sleep-for 1) (wl-unique-id))))))