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

Function test_findIndex_check_array

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

Source from the content-addressed store, hash-verified

2021
2022
2023def test_findIndex_check_array():
2024 items = ['Four', 'Three', 'One']
2025 result = ['']
2026 pm.eval("(result, arr) => {arr.findIndex((element, index, array) => result[0] = array)}")(result, items)
2027 assert result == [items]
2028 assert result[0] is items
2029
2030
2031def test_findIndex_check_this_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected