4 (luna-define-class test-wl-util
(lunit-test-case))
6 (luna-define-method test-wl-parse-addresses-1
((case test-wl-util
))
9 '("foo@example.com" "bar@example.com")
10 (wl-parse-addresses "foo@example.com, bar@example.com"))))
14 (luna-define-method test-wl-unique-id
((case test-wl-util
))
17 (string= (wl-unique-id)
18 (progn (sleep-for 1) (wl-unique-id))))))
20 (luna-define-method test-wl-unique-id-by-user
((case test-wl-util
))
22 (let (user-login-name)
24 (string= (progn (setq user-login-name
"_alice") (wl-unique-id))
25 (progn (setq user-login-name
"_bob") (wl-unique-id)))))))
28 (luna-define-method test-wl-inverse-alist
((case test-wl-util
))
32 (wl-inverse-alist '(a c
) '((a . aa
) (a . bb
) (c . cc
))))))