()
| 237 | |
| 238 | |
| 239 | def test_boost_histogram_apply_custom_transform(): |
| 240 | ctd = m.boost_histogram_custom_transform_double |
| 241 | cti = m.boost_histogram_custom_transform_int |
| 242 | apply = m.boost_histogram_apply_custom_transform |
| 243 | assert apply(ctd, 5) == 15 |
| 244 | assert apply(cti, 0) == -200 |
| 245 | assert apply(None, 0) == -100 |
| 246 | assert apply(lambda value: value, 9) == -200 |
| 247 | assert apply({}, 0) == -100 |
| 248 | assert apply("", 0) == -100 |
nothing calls this directly
no outgoing calls
no test coverage detected