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

Function test_forEach_check_array

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

Source from the content-addressed store, hash-verified

946
947
948def test_forEach_check_array():
949 items = ['Four', 'Three', 'One']
950 result = ['']
951 pm.eval("(result, arr) => {arr.forEach((element, index, array) => result[0] = array)}")(result, items)
952 assert result == [items]
953 assert result[0] is items
954
955
956def test_forEach_check_this_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected