()
| 1513 | |
| 1514 | |
| 1515 | def test_reduceRight(): |
| 1516 | items = [0, 1, 2, 3, 4] |
| 1517 | result = [None] |
| 1518 | pm.eval(""" |
| 1519 | (result, arr) => { |
| 1520 | result[0] = arr.reduceRight((accumulator, currentValue, index, array) => accumulator + currentValue); |
| 1521 | } |
| 1522 | """)(result, items) |
| 1523 | assert result[0] == 10 |
| 1524 | |
| 1525 | |
| 1526 | def test_reduceRight_with_initial_value(): |
nothing calls this directly
no outgoing calls
no test coverage detected