From 54180dc8018ac4172ac5285553880a4f7ccc6fb6 Mon Sep 17 00:00:00 2001 From: Sam Privett Date: Mon, 23 Sep 2024 17:47:23 -0700 Subject: [PATCH] Added missing testcase --- rosidl_runtime_rs/src/sequence.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rosidl_runtime_rs/src/sequence.rs b/rosidl_runtime_rs/src/sequence.rs index 4d8a962b..3d7cd583 100644 --- a/rosidl_runtime_rs/src/sequence.rs +++ b/rosidl_runtime_rs/src/sequence.rs @@ -674,6 +674,12 @@ mod tests { } } + #[test] + fn test_empty_sequence() { + assert!(Sequence::::default().is_empty()); + assert!(BoundedSequence::::default().is_empty()); + } + quickcheck! { fn test_extend(xs: Vec, ys: Vec) -> bool { let mut xs_seq = Sequence::new(xs.len());