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

Function test_iter_next

tests/python/test_lists.py:963–971  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

961
962
963def test_iter_next():
964 a = pm.eval("([1, 3, 5, 6, 2])")
965 iterator = iter(a)
966 try:
967 while True:
968 element = next(iterator)
969 assert (False)
970 except StopIteration:
971 assert (True)
972
973# reverse_iter
974

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected