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