(test-wl-parse-addresses-1, test-wl-unique-id): New testcases.
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.
--- /dev/null
+(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))))))