From 5ae86619b4594376268d611b8c12b564989fa6d2 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 28 Nov 2023 22:33:34 +0100 Subject: [PATCH] last push --- src/cfdp/pdu/nak.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cfdp/pdu/nak.rs b/src/cfdp/pdu/nak.rs index 8f935e1..6f1309e 100644 --- a/src/cfdp/pdu/nak.rs +++ b/src/cfdp/pdu/nak.rs @@ -402,8 +402,12 @@ mod tests { let end_of_scope = u32::from_be_bytes(buf[current_idx..current_idx + 4].try_into().unwrap()); assert_eq!(end_of_scope, 300); + current_idx += 4; + assert_eq!(current_idx, nak_pdu.len_written()); } #[test] - fn test_serialization_one_segment() {} + fn test_serialization_one_segment() { + + } }