()
| 340 | |
| 341 | |
| 342 | def test_slicing_chunks(): |
| 343 | result, chunks = slice_array("y", "x", ([5, 5], [5, 5]), (1, np.array([2, 0, 3]))) |
| 344 | assert chunks == ((3,),) |
| 345 | |
| 346 | result, chunks = slice_array( |
| 347 | "y", "x", ([5, 5], [5, 5]), (slice(0, 7), np.array([2, 0, 3])) |
| 348 | ) |
| 349 | assert chunks == ((5, 2), (3,)) |
| 350 | |
| 351 | result, chunks = slice_array("y", "x", ([5, 5], [5, 5]), (slice(0, 7), 1)) |
| 352 | assert chunks == ((5, 2),) |
| 353 | |
| 354 | |
| 355 | def test_slicing_with_numpy_arrays(): |
nothing calls this directly
no test coverage detected