def test_ediff1d(shape, to_end, to_begin): x = np.random.randint(0, 10, shape) a = da.from_array(x, chunks=(len(shape) * (5, ))) assert_eq(da.ediff1d(a, to_end, to_begin), np.ediff1d(x, to_end, to_begin))
def test_ediff1d(shape, to_end, to_begin): x = np.random.randint(0, 10, shape) a = da.from_array(x, chunks=(len(shape) * (5,))) assert_eq(da.ediff1d(a, to_end, to_begin), np.ediff1d(x, to_end, to_begin))