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

Function test_iterator_first_next

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

Source from the content-addressed store, hash-verified

2506
2507
2508def test_iterator_first_next():
2509 items = [1, 2]
2510 result = [0]
2511 pm.eval("(result, arr) => { result[0] = arr[Symbol.iterator]().next()}")(result, items)
2512 assert result[0].value == 1
2513 assert not result[0].done
2514
2515
2516def test_iterator_second_next():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected