()
| 1414 | |
| 1415 | |
| 1416 | def test_reduce_float(): |
| 1417 | items = [1.9, 4.6, 9.3, 16.5] |
| 1418 | result = [None] |
| 1419 | pm.eval(""" |
| 1420 | (result, arr) => { |
| 1421 | result[0] = arr.reduce((accumulator, currentValue) => accumulator + currentValue, 0); |
| 1422 | } |
| 1423 | """)(result, items) |
| 1424 | assert result[0] == 32.3 |
| 1425 | |
| 1426 | |
| 1427 | def test_reduce_string(): |
nothing calls this directly
no outgoing calls
no test coverage detected