17 lines
478 B
Rust
17 lines
478 B
Rust
#[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"));
|
|
}
|
|
}
|