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

Function test_flatMap_check_array

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

Source from the content-addressed store, hash-verified

2222
2223
2224def test_flatMap_check_array():
2225 items = ['Four', 'Three', 'One']
2226 result = ['']
2227 pm.eval("(result, arr) => {arr.flatMap((element, index, array) => result[0] = array)}")(result, items)
2228 assert result == [items]
2229 assert result[0] is items
2230
2231
2232def test_flatMap_check_this_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected