Added a test that chars in passwords.rs must be ascii

It was already implied but it might be useful if they will be changed
This commit is contained in:
StNicolay 2023-07-25 02:22:29 +03:00
parent 6ebfe4e03f
commit c682fd310b
Signed by: StNicolay
GPG Key ID: 9693D04DCD962B0D

View File

@ -95,3 +95,13 @@ pub fn check_master_pass(password: &str) -> PasswordValidity {
flags
}
#[cfg(test)]
mod tests {
use crate::passwords::CHARS;
#[test]
fn chars_must_be_ascii() {
assert!(CHARS.is_ascii())
}
}