Fix the test

This commit is contained in:
Rodolphe Bréard 2024-02-25 13:36:58 +01:00
parent 58df7fb221
commit 9a60461266

View file

@ -88,7 +88,7 @@ mod tests {
ciphertext: TEST_CIPHERTEXT.into(),
};
let s = super::encode(TEST_IKM_ID, &data);
let (id, decoded_data) = super::decode(TEST_STR).unwrap();
let (id, decoded_data) = super::decode(&s).unwrap();
assert_eq!(id, TEST_IKM_ID);
assert_eq!(decoded_data.nonce, data.nonce);
assert_eq!(decoded_data.ciphertext, data.ciphertext);