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

Function test_repr

dask/array/tests/test_array_core.py:1963–1969  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1961
1962
1963def test_repr():
1964 d = da.ones((4, 4), chunks=(2, 2))
1965 assert key_split(d.name) in repr(d)
1966 assert str(d.shape) in repr(d)
1967 assert str(d.dtype) in repr(d)
1968 d = da.ones((4000, 4), chunks=(4, 2))
1969 assert len(str(d)) < 1000
1970
1971
1972def test_repr_meta():

Callers

nothing calls this directly

Calls 2

key_splitFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected