Added unit tests for regex fix

This commit is contained in:
christina23 2020-11-16 11:02:59 -05:00
parent dead3226a5
commit bb7af9a823
2 changed files with 10 additions and 0 deletions

View file

@ -19,3 +19,9 @@ three@example.com,
one@example.com, one@example.com,
two@example.com two@example.com
} }
john.smith@email.com
[john.smith@email.com, jane.doe@email.com]
{
john.smith@email.com
jane.doe@email.com
}

View file

@ -15,3 +15,7 @@ s = "ieje one@example.com, eifj two@example.com, asdf three@example.com, one@exa
print extract_first_email_addr(s); print extract_first_email_addr(s);
print extract_email_addrs_vec(s); print extract_email_addrs_vec(s);
print extract_email_addrs_set(s); print extract_email_addrs_set(s);
s = "\"Smith, John\" <john.smith@email.com>, \"Doe, Jane\" <jane.doe@email.com>";
print extract_first_email_addr(s);
print extract_email_addrs_vec(s);
print extract_email_addrs_set(s);