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

Function test_iter_operator_tuple

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

Source from the content-addressed store, hash-verified

2599
2600
2601def test_iter_operator_tuple():
2602 myit = iter((1, 2))
2603 result = [None, None, None]
2604 pm.eval('(result, myit) => { result[0] = myit.next(); result[1] = myit.next(); result[2] = myit.next()}')(
2605 result, myit)
2606 assert result[0] == {'done': False, 'value': 1.0}
2607 assert result[1] == {'done': False, 'value': 2.0}
2608 assert result[2] == {'done': True}
2609
2610
2611def test_iter_operator_array():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected