From 4a77f138130a498ada2815238186e7387d00ee9d Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 2 Apr 2022 14:43:39 +0200 Subject: [PATCH] Test for email casing. --- tests/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/lib.rs b/tests/lib.rs index 556b371..41ea5a0 100644 --- a/tests/lib.rs +++ b/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]