mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 16:36:59 +03:00
Add tests that crash normalize_name()
This commit is contained in:
@@ -1176,6 +1176,10 @@ mod tests {
|
|||||||
fn test_normalize_name() {
|
fn test_normalize_name() {
|
||||||
assert_eq!(&normalize_name("Doe, John"), "John Doe");
|
assert_eq!(&normalize_name("Doe, John"), "John Doe");
|
||||||
assert_eq!(&normalize_name(" hello world "), "hello world");
|
assert_eq!(&normalize_name(" hello world "), "hello world");
|
||||||
|
assert_eq!(&normalize_name("<"), "<");
|
||||||
|
assert_eq!(&normalize_name(">"), ">");
|
||||||
|
assert_eq!(&normalize_name("'"), "'");
|
||||||
|
assert_eq!(&normalize_name("\""), "\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user