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

Function test_find_not_found

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

Source from the content-addressed store, hash-verified

1869
1870
1871def test_find_not_found():
1872 items = [5, 12, 8, 130, 44]
1873 result = [0]
1874 pm.eval("(result, arr) => {result[0] = arr.find((element) => element > 1000)}")(result, items)
1875 assert result[0] is None
1876
1877
1878def test_find_check_index():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected