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

Function test_forEach_check_index

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

Source from the content-addressed store, hash-verified

939
940
941def test_forEach_check_index():
942 items = ['Four', 'Three', 'One']
943 result = ['']
944 pm.eval("(result, arr) => {arr.forEach((element, index) => result[0] += index)}")(result, items)
945 assert result == ['012']
946
947
948def test_forEach_check_array():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected