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

Function test_entries_next

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

Source from the content-addressed store, hash-verified

2418
2419
2420def test_entries_next():
2421 items = ['a', 'b', 'c']
2422 result = [0]
2423 pm.eval("(result, arr) => {result[0] = arr.entries(); result[0] = result[0].next().value}")(result, items)
2424 assert items == ['a', 'b', 'c']
2425 assert result[0] == [0, 'a']
2426
2427
2428def test_entries_next_next():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected