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

Function test_iterator_second_next

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

Source from the content-addressed store, hash-verified

2514
2515
2516def test_iterator_second_next():
2517 items = [1, 2]
2518 result = [0]
2519 pm.eval("(result, arr) => { let iterator = arr[Symbol.iterator](); iterator.next(); result[0] = iterator.next()}")(
2520 result, items)
2521 assert result[0].value == 2
2522 assert not result[0].done
2523
2524
2525def test_iterator_last_next():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected