(test-wl-inverse-alist): Ditto.
+2008-02-19 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * test-wl-util.el (test-wl-unique-id-by-user): New testcase.
+ (test-wl-inverse-alist): Ditto.
+
2008-02-15 TAKAHASHI Kaoru <kaoru@kaisei.org>
* test-elmo-date.el: New file.
(not
(string= (wl-unique-id)
(progn (sleep-for 1) (wl-unique-id))))))
+
+(luna-define-method test-wl-unique-id-by-user ((case test-wl-util))
+ (lunit-assert
+ (let (user-login-name)
+ (not
+ (string= (progn (setq user-login-name "_alice") (wl-unique-id))
+ (progn (setq user-login-name "_bob") (wl-unique-id)))))))
+
+
+(luna-define-method test-wl-inverse-alist ((case test-wl-util))
+ (lunit-assert
+ (equal
+ '((cc c) (aa a))
+ (wl-inverse-alist '(a c) '((a . aa) (a . bb) (c . cc))))))