(defun notmuch-test-address-cleaning-1 () (notmuch-test-expect-equal (notmuch-show-clean-address "dme@dme.org") "dme@dme.org")) (defun notmuch-test-address-cleaning-2 () (let* ((input '("foo@bar.com" "" "Foo Bar " "foo@bar.com " "\"Foo Bar\" ")) (expected '("foo@bar.com" "foo@bar.com" "Foo Bar " "foo@bar.com" "Foo Bar ")) (output (mapcar #'notmuch-show-clean-address input))) (notmuch-test-expect-equal output expected))) (defun notmuch-test-address-cleaning-3 () (let* ((input '("ДБ " "foo (at home) " "foo [at home] " "Foo Bar" "'Foo Bar' " "\"'Foo Bar'\" " "'\"Foo Bar\"' " "'\"'Foo Bar'\"' " "Fred Dibna \\[extraordinaire\\] ")) (expected '("ДБ " "foo (at home) " "foo [at home] " "Foo Bar" "Foo Bar " "Foo Bar " "Foo Bar " "Foo Bar " "Fred Dibna [extraordinaire] ")) (output (mapcar #'notmuch-show-clean-address input))) (notmuch-test-expect-equal output expected)))