Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Revertron committed May 30, 2021
1 parent 2f9f71a commit 2d6afda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/chacha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mod tests {
let bytes2 = chacha2.decrypt(&bytes1).unwrap();
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);
}
Expand Down

0 comments on commit 2d6afda

Please sign in to comment.