5 (luna-define-class test-elmo-util (lunit-test-case))
8 (defvar test-elmo-temoporary-file)
10 (luna-define-method lunit-test-case-setup ((case test-elmo-util))
11 (setq test-elmo-temoporary-file
12 (make-temp-file temporary-file-directory)))
14 (luna-define-method lunit-test-case-teardown ((case test-elmo-util))
15 (delete-file test-elmo-temoporary-file))
18 (luna-define-method test-elmo-replace-string-as-filename-1 ((case test-elmo-util))
20 (let ((str "/foo//./../bar/"))
22 (elmo-recover-string-from-filename
23 (elmo-replace-string-as-filename str))))))
26 (luna-define-method test-elmo-object-save-1 ((case test-elmo-util))
27 (let ((list '(1 2 3 4 5 6 7 8 9 10 11 12))
30 (elmo-object-save test-elmo-temoporary-file list)
33 (elmo-object-load test-elmo-temoporary-file)))))