Add ACK and NAK PDU abstractions #41

Merged
muellerr merged 19 commits from add-ack-nak-pdus into main 2023-12-01 15:33:36 +01:00
Showing only changes of commit 5ae86619b4 - Show all commits

View File

@ -402,8 +402,12 @@ mod tests {
let end_of_scope = let end_of_scope =
u32::from_be_bytes(buf[current_idx..current_idx + 4].try_into().unwrap()); u32::from_be_bytes(buf[current_idx..current_idx + 4].try_into().unwrap());
assert_eq!(end_of_scope, 300); assert_eq!(end_of_scope, 300);
current_idx += 4;
assert_eq!(current_idx, nak_pdu.len_written());
} }
#[test] #[test]
fn test_serialization_one_segment() {} fn test_serialization_one_segment() {
}
} }