()
| 1535 | |
| 1536 | |
| 1537 | def test_reduceRight_float(): |
| 1538 | items = [1.9, 4.6, 9.3, 16.5] |
| 1539 | result = [None] |
| 1540 | pm.eval(""" |
| 1541 | (result, arr) => { |
| 1542 | result[0] = arr.reduceRight((accumulator, currentValue, index, array) => accumulator + currentValue); |
| 1543 | } |
| 1544 | """)(result, items) |
| 1545 | assert result[0] == 32.3 |
| 1546 | |
| 1547 | |
| 1548 | def test_reduceRight_check_index(): |
nothing calls this directly
no outgoing calls
no test coverage detected