Update a test

This commit is contained in:
Chris Hennick 2024-03-13 13:16:15 -07:00
parent 26b90ae1b1
commit 4b8738f8c1

View file

@ -15,8 +15,7 @@ fn aes256_encrypted_uncompressed_file() {
let mut file = archive
.by_name_decrypt("secret_data_256_uncompressed", PASSWORD)
.expect("couldn't find file in archive")
.expect("invalid password");
.expect("couldn't find file in archive");
assert_eq!("secret_data_256_uncompressed", file.name());
let mut content = String::new();
@ -33,8 +32,7 @@ fn aes256_encrypted_file() {
let mut file = archive
.by_name_decrypt("secret_data_256", PASSWORD)
.expect("couldn't find file in archive")
.expect("invalid password");
.expect("couldn't find file in archive");
assert_eq!("secret_data_256", file.name());
let mut content = String::new();
@ -51,8 +49,7 @@ fn aes192_encrypted_file() {
let mut file = archive
.by_name_decrypt("secret_data_192", PASSWORD)
.expect("couldn't find file in archive")
.expect("invalid password");
.expect("couldn't find file in archive");
assert_eq!("secret_data_192", file.name());
let mut content = String::new();
@ -69,8 +66,7 @@ fn aes128_encrypted_file() {
let mut file = archive
.by_name_decrypt("secret_data_128", PASSWORD)
.expect("couldn't find file in archive")
.expect("invalid password");
.expect("couldn't find file in archive");
assert_eq!("secret_data_128", file.name());
let mut content = String::new();