()
| 379 | |
| 380 | |
| 381 | def test_reduction_names(): |
| 382 | assert b.sum().name.startswith("sum") |
| 383 | assert b.reduction(sum, sum).name.startswith("sum") |
| 384 | assert any( |
| 385 | isinstance(k, str) and k.startswith("max") for k in b.reduction(sum, max).dask |
| 386 | ) |
| 387 | assert b.reduction(sum, sum, name="foo").name.startswith("foo") |
| 388 | |
| 389 | |
| 390 | def test_tree_reductions(): |