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

Function test_map_check_array

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

Source from the content-addressed store, hash-verified

1131
1132
1133def test_map_check_array():
1134 items = ['Four', 'Three', 'One']
1135 result = ['']
1136 pm.eval("(result, arr) => {arr.map((element, index, array) => result[0] = array)}")(result, items)
1137 assert result == [items]
1138 assert result[0] is items
1139
1140
1141def test_map_check_this_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected