()
| 23 | |
| 24 | |
| 25 | def test_basic(): |
| 26 | # sanity check |
| 27 | dtype = [("a", "f8"), ("b", "f8"), ("c", "f8")] |
| 28 | x = np.ones((5, 3), dtype=dtype) |
| 29 | dx = da.ones((5, 3), dtype=dtype, chunks=3) |
| 30 | result = dx[["a", "b"]] |
| 31 | expected = x[["a", "b"]] |
| 32 | assert_eq(result, expected) |
| 33 | |
| 34 | |
| 35 | def test_min_max_round_funcs(): |