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

Function test_full

dask/array/tests/test_wrap.py:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def test_full():
41 a = da.full((3, 3), 100, chunks=(2, 2), dtype="i8")
42
43 assert (a.compute() == 100).all()
44 assert a.dtype == a.compute(scheduler="sync").dtype == "i8"
45
46 assert a.name.startswith("full_like-")
47
48
49def test_full_error_nonscalar_fill_value():

Callers

nothing calls this directly

Calls 3

fullMethod · 0.45
allMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected