MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_reduceRight_float

Function test_reduceRight_float

tests/python/test_arrays.py:1537–1545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1535
1536
1537def 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
1548def test_reduceRight_check_index():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected