mirror of
https://github.com/trussed-dev/heapless-bytes.git
synced 2026-06-20 04:16:33 -07:00
Fix tests
This commit is contained in:
committed by
sosthene-nitrokey
parent
13dec8a674
commit
5dede6608e
+1
-3
@@ -393,7 +393,6 @@ impl<'de, const N: usize> Deserialize<'de> for Bytes<N> {
|
||||
#[cfg(feature = "cbor")]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use heapless::consts;
|
||||
|
||||
#[test]
|
||||
fn test_client_data_hash() {
|
||||
@@ -402,8 +401,7 @@ mod tests {
|
||||
0x44, 0x45, 0x46,
|
||||
];
|
||||
|
||||
let client_data_hash: Bytes<consts::U32> =
|
||||
serde_cbor::de::from_mut_slice(&mut minimal).unwrap();
|
||||
let client_data_hash: Bytes<17> = serde_cbor::de::from_mut_slice(&mut minimal).unwrap();
|
||||
|
||||
assert_eq!(client_data_hash, b"1234567890ABCDEF");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user