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

Function test_indexOf_with_start

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

Source from the content-addressed store, hash-verified

352
353
354def test_indexOf_with_start():
355 items = [1, 2, 3, 4, 3]
356 result = [None]
357 pm.eval("(result, arr) => {result[0] = arr.indexOf(3, 3)}")(result, items)
358 assert result[0] == 4
359
360
361def test_indexOf_with_negative_start():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected