MCPcopy Create free account
hub / github.com/dask/dask / test_basic

Function test_basic

dask/array/tests/test_numpy_compat.py:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def 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
35def test_min_max_round_funcs():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected