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

Function test_lastIndexOf_not_found

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

Source from the content-addressed store, hash-verified

431
432
433def test_lastIndexOf_not_found():
434 items = [1, 2, 3]
435 result = [None]
436 pm.eval("(result, arr) => {result[0] = arr.lastIndexOf(3, 0)}")(result, items)
437 assert result[0] == -1
438
439
440def test_lastIndexOf_small_start():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected