* test-utf7.el (toplevel): Use `fboundp' instead of `boundp'.
[elisp/wanderlust.git] / tests / test-wl-util.el
index e8d8389..1efc1bf 100644 (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))))))