additional test case

This commit is contained in:
Aravinth Manivannan 2021-06-29 19:02:54 +05:30
parent c899181a1b
commit 66d42bfd1d
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -23,7 +23,9 @@ mod tests {
fn test_usercase_mapped() {
let legal = "\u{0065}";
let illegal = "\u{0000}";
let illegal2 = "@";
assert_eq!(filter(legal), Ok(()));
assert_eq!(filter(illegal), Err(CredsError::UsernameCaseMappedError));
assert_eq!(filter(illegal2), Err(CredsError::UsernameCaseMappedError));
}
}