(original_shape, new_shape, chunks)
| 1503 | ], |
| 1504 | ) |
| 1505 | def test_reshape(original_shape, new_shape, chunks): |
| 1506 | x = np.random.default_rng().integers(10, size=original_shape) |
| 1507 | a = from_array(x, chunks=chunks) |
| 1508 | |
| 1509 | xr = x.reshape(new_shape) |
| 1510 | ar = a.reshape(new_shape) |
| 1511 | |
| 1512 | if a.shape == new_shape: |
| 1513 | assert a is ar |
| 1514 | |
| 1515 | assert_eq(xr, ar) |
| 1516 | |
| 1517 | |
| 1518 | def test_reshape_exceptions(): |
nothing calls this directly
no test coverage detected