(arr, darr, indexer, chunks, other_chunks)
| 30 | ], |
| 31 | ) |
| 32 | def test_shuffle(arr, darr, indexer, chunks, other_chunks): |
| 33 | result = darr.shuffle(indexer, axis=1) |
| 34 | expected = arr[:, list(flatten(indexer))] |
| 35 | assert_eq(result, expected) |
| 36 | assert result.chunks[0] == other_chunks |
| 37 | assert result.chunks[1] == chunks |
| 38 | |
| 39 | |
| 40 | @pytest.mark.parametrize("tol, chunks", ((1, (3, 2, 3)), (1.4, (5, 3)))) |