Skip to content

Commit

Permalink
Add a test that shows that the local part is returned with Unicode NF…
Browse files Browse the repository at this point in the history
…C normalization

s + U+0323 + U+0307 normalizes under NFC to U+1E69 (Latin Small Letter S With Dot Below And Dot Above) (https://www.unicode.org/reports/tr15/). We normalize when creating the returned email address info.
  • Loading branch information
JoshData committed Jun 19, 2024
1 parent 3426885 commit 1fb55d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,16 @@ def test_email_valid(email_input: str, output: ValidatedEmail) -> None:
normalized='ιωάννης@εεττ.gr',
),
),
(
's\u0323\u0307@nfc.tld',
MakeValidatedEmail(
local_part='\u1E69',
smtputf8=True,
ascii_domain='nfc.tld',
domain='nfc.tld',
normalized='\u1E69@nfc.tld',
),
),
],
)
def test_email_valid_intl_local_part(email_input: str, output: ValidatedEmail) -> None:
Expand Down

0 comments on commit 1fb55d4

Please sign in to comment.