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

Function test_entries_next_next

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

Source from the content-addressed store, hash-verified

2426
2427
2428def test_entries_next_next():
2429 items = ['a', 'b', 'c']
2430 result = [0]
2431 pm.eval("(result, arr) => {result[0] = arr.entries(); result[0].next(); result[0] = result[0].next().value}")(
2432 result, items)
2433 assert result[0] == [1, 'b']
2434
2435
2436def test_entries_next_next_undefined():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected