(func, dtype, kwargs)
| 705 | ], |
| 706 | ) |
| 707 | def test_fromfunction(func, dtype, kwargs): |
| 708 | a = np.fromfunction(func, shape=(5, 5), dtype=dtype, **kwargs) |
| 709 | d = da.fromfunction(func, shape=(5, 5), chunks=(2, 2), dtype=dtype, **kwargs) |
| 710 | |
| 711 | assert_eq(d, a) |
| 712 | |
| 713 | d2 = da.fromfunction(func, shape=(5, 5), chunks=(2, 2), dtype=dtype, **kwargs) |
| 714 | |
| 715 | assert same_keys(d, d2) |
| 716 | |
| 717 | |
| 718 | def test_repeat(): |