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:
parent
6ebfe4e03f
commit
c682fd310b
@ -95,3 +95,13 @@ pub fn check_master_pass(password: &str) -> PasswordValidity {
|
|||||||
|
|
||||||
flags
|
flags
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use crate::passwords::CHARS;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn chars_must_be_ascii() {
|
||||||
|
assert!(CHARS.is_ascii())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user