Differences From Artifact [5610b717c8]:
- File tests/mail.rs — part of check-in [b9af445709] at 2026-07-31 15:42:49 on branch trunk — consolidate and clarify (user: arcade, size: 1044) [annotate] [blame] [check-ins using] [more...]
To Artifact [32cfc4300b]:
- File tests/mail.rs — part of check-in [f748e99b70] at 2026-08-01 10:24:03 on branch trunk — regex in get_id was defunct, fix regex, fix logic to filter unknown domains (user: arcade, size: 1274) [annotate] [blame] [check-ins using]
| ︙ | |||
35 36 37 38 39 40 41 42 43 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | + + + + + + |
("someone", 0),
("root", -1),
("unknown@example.com", 0),
];
for (email, id) in cases {
assert_eq!(*server.get_id(email)?, ChatPeerId::from(id), "email [{email}] expected to return id [{id}]");
}
let cases = [
"someone@otherdomain.net",
];
for email in cases {
assert!(server.get_id(email).unwrap_err().to_string().contains("Doesn't look like address from one of our domains."), "email [{email}] expected to fail");
}
Ok(())
}
|