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

Function test_find_check_array

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

Source from the content-addressed store, hash-verified

1884
1885
1886def test_find_check_array():
1887 items = ['Four', 'Three', 'One']
1888 result = ['']
1889 pm.eval("(result, arr) => {arr.find((element, index, array) => result[0] = array)}")(result, items)
1890 assert result == [items]
1891 assert result[0] is items
1892
1893
1894def test_find_check_this_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected