()
| 1287 | |
| 1288 | |
| 1289 | def test_field_access(): |
| 1290 | x = np.array([(1, 1.0), (2, 2.0)], dtype=[("a", "i4"), ("b", "f4")]) |
| 1291 | y = from_array(x, chunks=(1,)) |
| 1292 | assert_eq(y["a"], x["a"]) |
| 1293 | assert_eq(y[["b", "a"]], x[["b", "a"]]) |
| 1294 | assert same_keys(y[["b", "a"]], y[["b", "a"]]) |
| 1295 | |
| 1296 | |
| 1297 | def test_field_access_with_shape(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…