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

Function test_find_found_twice

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

Source from the content-addressed store, hash-verified

1862
1863
1864def test_find_found_twice():
1865 items = [5, 12, 8, 130, 4]
1866 result = [0]
1867 pm.eval("(result, arr) => {result[0] = arr.find((element) => element > 10)}")(result, items)
1868 assert result[0] == 12
1869
1870
1871def test_find_not_found():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected