Skip to content

Commit 54180dc

Browse files
committed
Added missing testcase
1 parent a5b5a0b commit 54180dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rosidl_runtime_rs/src/sequence.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,12 @@ mod tests {
674674
}
675675
}
676676

677+
#[test]
678+
fn test_empty_sequence() {
679+
assert!(Sequence::<i32>::default().is_empty());
680+
assert!(BoundedSequence::<i32, 5>::default().is_empty());
681+
}
682+
677683
quickcheck! {
678684
fn test_extend(xs: Vec<i32>, ys: Vec<i32>) -> bool {
679685
let mut xs_seq = Sequence::new(xs.len());

0 commit comments

Comments
 (0)