summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/email.scm14
1 files changed, 14 insertions, 0 deletions
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: <foo@bar.org>
+")
+ '((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 <foo@example.org>")
'((name . "Foo") (address . "foo@example.org")))