From 1f987516f6b1cded0a5743142ef50c559f08bcdf Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 17 Sep 2019 16:19:28 +0200 Subject: tests: Add two user-id parsing test cases. -- Signed-off-by: Werner Koch --- common/t-mbox-util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/t-mbox-util.c') diff --git a/common/t-mbox-util.c b/common/t-mbox-util.c index ae717f96f..e777e03e2 100644 --- a/common/t-mbox-util.c +++ b/common/t-mbox-util.c @@ -77,6 +77,12 @@ run_mbox_test (void) { " ()", "fo()o@example.org" }, { "fo()o@example.org", NULL}, { "Mr. Foo ", "foo@example.org"}, + { "Surname, Forename | company ", "foo@example.org"}, + /* The next one is for sure not RFC-822 correct but nevertheless + * the way gpg does it. We won't change it because the user-id + * is only rfc-822 alike and not compliant (think only of our + * utf-8 requirement). */ + { "\"\" ", "foo@example.org"}, { NULL, NULL } }; int idx; -- cgit v1.2.3