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

Function test_find_check_index

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

Source from the content-addressed store, hash-verified

1876
1877
1878def test_find_check_index():
1879 items = [4, 2, 6, 7]
1880 result = ['']
1881 pm.eval("(result, arr) => {arr.find((x, index) => result[0] += index)}")(result, items)
1882 assert items == [4, 2, 6, 7]
1883 assert result[0] == '0123'
1884
1885
1886def test_find_check_array():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected