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

Function test_reduce

tests/python/test_lists.py:957–960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

955
956
957def test_reduce():
958 a = pm.eval("([1, 3, 5, 6, 2])")
959 result = reduce(lambda a, b: a + b, a)
960 assert result == 17
961
962
963def test_iter_next():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected