(mixed_grouping_size)
| 155 | |
| 156 | |
| 157 | def test_map_grouping_mixed(mixed_grouping_size): |
| 158 | grouping, size = mixed_grouping_size |
| 159 | |
| 160 | def fn(x): |
| 161 | return x * 2 + 5 |
| 162 | |
| 163 | result = map_grouping(fn, grouping) |
| 164 | expected = make_grouping_by_index( |
| 165 | grouping, list(map(fn, flatten_grouping(grouping))) |
| 166 | ) |
| 167 | assert expected == result |
| 168 | |
| 169 | |
| 170 | # Test make_grouping_by_key |
nothing calls this directly
no test coverage detected
searching dependent graphs…