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