X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2Femacs-address-cleaning.el;h=6eda0ebc913f9b3cd88193a5cc12dc65b8b18c33;hb=78632345868b5e4753ad402c806c29569946ce89;hp=19e9e055e37241dbbb4a20b035c31be445a3cd95;hpb=3699fedb3accf5fbd8085c0789d43c716d6ad3e9;p=notmuch diff --git a/test/emacs-address-cleaning.el b/test/emacs-address-cleaning.el index 19e9e055..6eda0ebc 100644 --- a/test/emacs-address-cleaning.el +++ b/test/emacs-address-cleaning.el @@ -1,6 +1,6 @@ (defun notmuch-test-address-cleaning-1 () (notmuch-test-expect-equal (notmuch-show-clean-address "dme@dme.org") - "dme@dme.org")) + "dme@dme.org")) (defun notmuch-test-address-cleaning-2 () (let* ((input '("foo@bar.com" @@ -20,10 +20,20 @@ (let* ((input '("ДБ " "foo (at home) " "foo [at home] " - "Foo Bar")) + "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 " + "Foo Bar " + "Fred Dibna [extraordinaire] ")) (output (mapcar #'notmuch-show-clean-address input))) (notmuch-test-expect-equal output expected)))