Test for email casing.
This commit is contained in:
parent
cf5a6497e5
commit
4a77f13813
10
tests/lib.rs
10
tests/lib.rs
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue