fix: improve test_random_8_char_string

This commit is contained in:
EETagent 2022-10-29 21:10:39 +02:00
parent 1d871fbcc1
commit 9cffa8db9f

View file

@ -254,6 +254,7 @@ pub async fn decrypt_file_with_private_key_as_buffer<P: AsRef<Path>>(
mod tests {
#[test]
fn test_random_8_char_string() {
for _ in 0..1000 {
let s = super::random_8_char_string();
// Is 8 chars long
assert_eq!(s.len(), 8);
@ -261,6 +262,7 @@ mod tests {
assert!(!s.contains('0'));
assert!(!s.contains('O'));
}
}
#[tokio::test]
async fn test_hash_password() {