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

Function test_lastIndexOf

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

Source from the content-addressed store, hash-verified

396
397
398def test_lastIndexOf():
399 items = [1, 2, 3]
400 result = [None]
401 pm.eval("(result, arr) => {result[0] = arr.lastIndexOf(1)}")(result, items)
402 assert result[0] == 0
403
404
405def test_lastIndexOf_dup():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected