[gmime/gmime-2-4] added more addrspec tests



commit 94c55f043521ae5d1b41f76c9dd91f1ec73c87fa
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Thu Aug 26 21:21:49 2010 -0400

    added more addrspec tests

 tests/test-mime.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-mime.c b/tests/test-mime.c
index 512677e..befd0e7 100644
--- a/tests/test-mime.c
+++ b/tests/test-mime.c
@@ -169,6 +169,13 @@ static struct {
 	{ "Canonical Patch Queue Manager<pqm pqm ubuntu com>",
 	  "Canonical Patch Queue Manager <pqm pqm ubuntu com>",
 	  "Canonical Patch Queue Manager <pqm pqm ubuntu com>" },
+	/* Some examples pulled from rfc5322 */
+	{ "Pete(A nice \\) chap) <pete(his account)@silly.test(his host)>",
+	  "Pete <pete silly test>",
+	  "Pete <pete silly test>" },
+	{ "A Group(Some people):Chris Jones <c@(Chris's host.)public.example>, joe example org, John <jdoe one test> (my dear friend); (the end of the group)",
+	  "A Group: Chris Jones <c public example>, joe example org, John <jdoe one test>;",
+	  "A Group: Chris Jones <c public example>, joe example org, John <jdoe one test>;" },
 	/* The following tests cases are meant to test forgivingness
 	 * of the parser when it encounters unquoted specials in the
 	 * name component */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]