Skip to content

Commit

Permalink
Added missing testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
maspe36 committed Sep 24, 2024
1 parent a5b5a0b commit 54180dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rosidl_runtime_rs/src/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,12 @@ mod tests {
}
}

#[test]
fn test_empty_sequence() {
assert!(Sequence::<i32>::default().is_empty());
assert!(BoundedSequence::<i32, 5>::default().is_empty());
}

quickcheck! {
fn test_extend(xs: Vec<i32>, ys: Vec<i32>) -> bool {
let mut xs_seq = Sequence::new(xs.len());
Expand Down

0 comments on commit 54180dc

Please sign in to comment.