Make unit tests compile

This commit is contained in:
Nadja Reitzenstein
2022-05-05 17:22:54 +02:00
parent 76f59d7196
commit 9e2be12fbd
4 changed files with 0 additions and 129 deletions

View File

@ -509,19 +509,6 @@ pub(crate) mod tests {
ObjectIdentifier::build(ObjectIdentifierRoot::JointIsoItuT, 25, children).unwrap()
}
#[test]
fn bincode_serde_roundtrip() {
let expected = ObjectIdentifier::build(
ObjectIdentifierRoot::ItuT,
0x01,
vec![1, 2, 3, 5, 8, 13, 21],
)
.unwrap();
let buffer: Vec<u8> = bincode::serialize(&expected).unwrap();
let actual = bincode::deserialize(&buffer).unwrap();
assert_eq!(expected, actual);
}
#[test]
fn encode_binary_root_node_0() {
let expected: Vec<u8> = vec![0];