()
| 23 | |
| 24 | |
| 25 | def test_array(): |
| 26 | x = np.ones(5, dtype="i4") |
| 27 | d = da.ones(5, chunks=3, dtype="i4") |
| 28 | assert_eq(da.array(d, ndmin=3, dtype="i8"), np.array(x, ndmin=3, dtype="i8")) |
| 29 | |
| 30 | # regression #1847 this shall not raise an exception. |
| 31 | x = da.ones((100, 3), chunks=10) |
| 32 | y = da.array(x) |
| 33 | assert isinstance(y, da.Array) |
| 34 | |
| 35 | |
| 36 | def test_array_return_type(): |