mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests: Add two user-id parsing test cases.
-- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
ce9906b008
commit
1f987516f6
@ -77,6 +77,12 @@ run_mbox_test (void)
|
||||
{ "<fo()o@example.org> ()", "fo()o@example.org" },
|
||||
{ "fo()o@example.org", NULL},
|
||||
{ "Mr. Foo <foo@example.org><bar@example.net>", "foo@example.org"},
|
||||
{ "Surname, Forename | company <foo@example.org>", "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>\" <foo@example.net>", "foo@example.org"},
|
||||
{ NULL, NULL }
|
||||
};
|
||||
int idx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user