def test_random(): a = random((10, 10), chunks=(5, 5)) assert isinstance(a, Array) assert isinstance(a.name, str) and a.name assert a.shape == (10, 10) assert a.chunks == ((5, 5), (5, 5)) x = set(np.array(a).flat) assert len(x) > 90
def test_random(): a = random((10, 10), blockshape=(5, 5)) assert isinstance(a, Array) assert isinstance(a.name, str) and a.name assert a.shape == (10, 10) assert a.blockdims == ((5, 5), (5, 5)) x = set(into(np.ndarray, a).flat) assert len(x) > 90
def test_unique_names(): a = random((10, 10), chunks=(5, 5)) b = random((10, 10), chunks=(5, 5)) assert a.name != b.name
def test_unique_names(): a = random((10, 10), blockshape=(5, 5)) b = random((10, 10), blockshape=(5, 5)) assert a.name != b.name