test_ok1/py/builtin/testing/test_enumerate.py

8 lines
122 B
Python

import sys
import py
def test_enumerate():
l = [0,1,2]
for i,x in py.builtin.enumerate(l):
assert i == x