From 043754c11171f00db1c94a4822d8d0061569fb01 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 15:45:51 +0000 Subject: [PATCH] Initial upload: GitPulse - Developer Productivity Analyzer CLI tool --- tests/utils_test.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/utils_test.rs diff --git a/tests/utils_test.rs b/tests/utils_test.rs new file mode 100644 index 0000000..c2c3bb2 --- /dev/null +++ b/tests/utils_test.rs @@ -0,0 +1,16 @@ +#[cfg(test)] +mod tests { + use crate::utils::author::normalize_author_identity; + + #[test] + fn test_normalize_author_identity() { + let identity = normalize_author_identity("John Doe", "john@example.com"); + assert!(identity.contains("john@example.com")); + } + + #[test] + fn test_normalize_email_lowercase() { + let identity = normalize_author_identity("John", "JOHN@EXAMPLE.COM"); + assert!(identity.contains("john@example.com")); + } +}