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

Function test_lastIndexOf_dup

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

Source from the content-addressed store, hash-verified

403
404
405def test_lastIndexOf_dup():
406 items = [1, 2, 3, 1]
407 result = [None]
408 pm.eval("(result, arr) => {result[0] = arr.lastIndexOf(1)}")(result, items)
409 assert result[0] == 3
410
411
412def test_lastIndexOf_with_from_index():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected