Fixed tests.

This commit is contained in:
Revertron
2021-05-30 14:52:04 +02:00
parent 2f9f71a795
commit 2d6afdabc5
+1 -1
View File
@@ -58,7 +58,7 @@ mod tests {
let bytes2 = chacha2.decrypt(&bytes1).unwrap(); let bytes2 = chacha2.decrypt(&bytes1).unwrap();
assert_eq!(String::from_utf8(bytes2).unwrap(), "TEST"); assert_eq!(String::from_utf8(bytes2).unwrap(), "TEST");
let bytes2 = chacha2.encrypt(b"TEST"); let bytes2 = chacha2.encrypt(b"TEST").unwrap();
assert_eq!(bytes1, bytes2); assert_eq!(bytes1, bytes2);
} }