unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 59e8d92303f7e92745a5870065a8b7c1443ea7bf 963 bytes (raw)
name: test/address-cleaning.el 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
(defun notmuch-test-address-cleaning-1 ()
  (notmuch-test-compare (notmuch-show-clean-address "dme@dme.org")
			"dme@dme.org"))

(defun notmuch-test-address-cleaning-2 ()
  (let* ((input '("foo@bar.com"
		  "<foo@bar.com>"
		  "Foo Bar <foo@bar.com>"
		  "foo@bar.com <foo@bar.com>"
		  "\"Foo Bar\" <foo@bar.com>"))
	 (expected '("foo@bar.com"
		     "foo@bar.com"
		     "Foo Bar <foo@bar.com>"
		     "foo@bar.com"
		     "Foo Bar <foo@bar.com>"))
	 (output (mapcar #'notmuch-show-clean-address input)))
    (notmuch-test-compare output expected)))

(defun notmuch-test-address-cleaning-3 ()
  (let* ((input '("ДБ <db-uknot@stop.me.uk>"
		  "foo (at home) <foo@bar.com>"
		  "foo [at home] <foo@bar.com>"
		  "Foo Bar"))
	 (expected '("ДБ <db-uknot@stop.me.uk>"
		     "foo (at home) <foo@bar.com>"
		     "foo [at home] <foo@bar.com>"
		     "Foo Bar"))
	 (output (mapcar #'notmuch-show-clean-address input)))
    (notmuch-test-compare output expected)))

debug log:

solving 59e8d92 ...
found 59e8d92 in https://yhetil.org/notmuch/1326804748-8989-3-git-send-email-dme@dme.org/

applying [1/1] https://yhetil.org/notmuch/1326804748-8989-3-git-send-email-dme@dme.org/
diff --git a/test/address-cleaning.el b/test/address-cleaning.el
new file mode 100644
index 0000000..59e8d92

Checking patch test/address-cleaning.el...
Applied patch test/address-cleaning.el cleanly.

index at:
100644 59e8d92303f7e92745a5870065a8b7c1443ea7bf	test/address-cleaning.el

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).