From 907a5d678c58eff653133df441aeecd3b7025e37 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 4 Dec 2020 23:14:06 +0530 Subject: tests: Parse email addresses with period in name. * tests/email.scm ("parse email addresses with period in name"): New test. Reported-by: Ricardo Wurmus --- tests/email.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/email.scm b/tests/email.scm index acf1b8a..a2b6361 100644 --- a/tests/email.scm +++ b/tests/email.scm @@ -1,6 +1,6 @@ ;;; guile-email --- Guile email parser ;;; Copyright © 2017 Ricardo Wurmus -;;; Copyright © 2018, 2019 Arun Isaac +;;; Copyright © 2018, 2019, 2020 Arun Isaac ;;; ;;; This file was adapted from guile-debbugs and is part of guile-email. ;;; @@ -410,6 +410,12 @@ copyright =A9") (parse-email-address "foo@example.org (Foo)") '((name . "Foo") (address . "foo@example.org"))) +(test-expect-fail "parse email addresses with period in name") + +(test-equal "parse email addresses with period in name" + (parse-email-address "Foo P. Bar ") + '((name . "Foo P. Bar") (address . "foo@example.com"))) + (test-equal "decode MIME encoded word: wikipedia example" ((module-ref (resolve-module '(email email)) 'decode-mime-encoded-word) -- cgit v1.2.3