()
| 1425 | |
| 1426 | |
| 1427 | def test_reduce_string(): |
| 1428 | items = ['Hi', 'There'] |
| 1429 | result = [None] |
| 1430 | pm.eval(""" |
| 1431 | (result, arr) => { |
| 1432 | result[0] = arr.reduce((accumulator, currentValue) => accumulator + currentValue, ""); |
| 1433 | } |
| 1434 | """)(result, items) |
| 1435 | assert result[0] == 'HiThere' |
| 1436 | |
| 1437 | |
| 1438 | def test_reduce_initial_value_not_zero(): |
nothing calls this directly
no outgoing calls
no test coverage detected