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

Function test_indexOf_small_start

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

Source from the content-addressed store, hash-verified

387
388
389def test_indexOf_small_start():
390 items = [1, 2, 3, 1]
391 result = [None]
392 pm.eval("(result, arr) => {result[0] = arr.indexOf(1, -10)}")(result, items)
393 assert result[0] == 0
394
395# lastIndexOf
396

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected