Skip to content

Commit 1fb55d4

Browse files
committed
Add a test that shows that the local part is returned with Unicode NFC 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.
1 parent 3426885 commit 1fb55d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_syntax.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,16 @@ def test_email_valid(email_input: str, output: ValidatedEmail) -> None:
294294
normalized='ιωάννης@εεττ.gr',
295295
),
296296
),
297+
(
298+
's\u0323\u0307@nfc.tld',
299+
MakeValidatedEmail(
300+
local_part='\u1E69',
301+
smtputf8=True,
302+
ascii_domain='nfc.tld',
303+
domain='nfc.tld',
304+
normalized='\u1E69@nfc.tld',
305+
),
306+
),
297307
],
298308
)
299309
def test_email_valid_intl_local_part(email_input: str, output: ValidatedEmail) -> None:

0 commit comments

Comments
 (0)