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

Function test_indexOf_not_found

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

Source from the content-addressed store, hash-verified

380
381
382def test_indexOf_not_found():
383 items = [1, 2, 3]
384 result = [None]
385 pm.eval("(result, arr) => {result[0] = arr.indexOf(10)}")(result, items)
386 assert result[0] == -1
387
388
389def test_indexOf_small_start():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected