1
Fork 0

Test for email casing.

This commit is contained in:
Bauke 2022-04-02 14:43:39 +02:00
parent cf5a6497e5
commit 4a77f13813
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,16 @@ fn test_hash_email() {
Generator::hash_email(&format!(" {HOLLLO_EMAIL} ")),
HOLLLO_HASH
);
// Make sure casing doesn't matter.
assert_eq!(
Generator::hash_email(&BAUKE_EMAIL.to_uppercase()),
BAUKE_HASH
);
assert_eq!(
Generator::hash_email(&HOLLLO_EMAIL.to_uppercase()),
HOLLLO_HASH
);
}
#[test]