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

Function test_assert_eq_array

dask/array/tests/test_testing.py:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_assert_eq_array():
25 x = np.arange(6).reshape((2, 3))
26 d = da.from_array(x, chunks=(1, 3))
27 assert_eq(d, x)
28 assert_eq(d, d)
29 with pytest.raises(AssertionError):
30 assert_eq(d, x + 1)
31
32
33def test_assert_eq_checks_shape():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
reshapeMethod · 0.80
arangeMethod · 0.45

Tested by

no test coverage detected