()
| 1536 | |
| 1537 | |
| 1538 | def test_reshape_unknown_dimensions(): |
| 1539 | for original_shape in [(24,), (2, 12), (2, 3, 4)]: |
| 1540 | for new_shape in [(-1,), (2, -1), (-1, 3, 4)]: |
| 1541 | x = np.random.default_rng().integers(10, size=original_shape) |
| 1542 | a = from_array(x, 24) |
| 1543 | assert_eq(x.reshape(new_shape), a.reshape(new_shape)) |
| 1544 | |
| 1545 | pytest.raises(ValueError, lambda: da.reshape(a, (-1, -1))) |
| 1546 | |
| 1547 | |
| 1548 | def test_full(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…