From d162521a23eb9e5c1cf78e8b20b086190329b3d6 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 21 Dec 2019 22:57:37 +0530 Subject: tests: Return References header with only one reference as a singleton list. * tests/email.scm ("References header with only one reference must be a singleton list, not a string"): New test. --- tests/email.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/email.scm b/tests/email.scm index 23daffa..acf1b8a 100644 --- a/tests/email.scm +++ b/tests/email.scm @@ -384,6 +384,20 @@ copyright =A9") (subtype . plain) (charset . "utf-8")) (content-transfer-encoding . 7bit))) + +(test-expect-fail + "References header with only one reference must be a singleton list, not a string") + +(test-alist= "References header with only one reference must be a singleton list, not a string" + (parse-email-headers + "References: +") + '((references . ("foo@bar.org")) + (content-type (type . text) + (subtype . plain) + (charset . "utf-8")) + (content-transfer-encoding . 7bit))) + (test-equal "parse name-addr email address" (parse-email-address "Foo ") '((name . "Foo") (address . "foo@example.org"))) -- cgit v1.2.3