Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jan 19, 2025
1 parent 5cb5179 commit 9bd09fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zarrs/src/array/array_bytes_fixed_disjoint_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ mod tests {
)
}
.is_err()); // invalid bytes length
assert!(unsafe {
ArrayBytesFixedDisjointView::new(
bytes,
1,
&shape,
ArraySubset::new_with_ranges(&[0..2, 1..10]),
)
}
.is_err()); // OOB

let mut view0 = unsafe {
ArrayBytesFixedDisjointView::new(
Expand Down

0 comments on commit 9bd09fb

Please sign in to comment.