1f53ff61ff
For consistency with all of the other tests that are named builtin_XXX.py.
17 lines
409 B
Python
17 lines
409 B
Python
try:
|
|
enumerate
|
|
except:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
print(list(enumerate([])))
|
|
print(list(enumerate([1, 2, 3])))
|
|
print(list(enumerate([1, 2, 3], 5)))
|
|
print(list(enumerate([1, 2, 3], -5)))
|
|
print(list(enumerate(range(100))))
|
|
|
|
# specifying args with keywords
|
|
print(list(enumerate([1, 2, 3], start=1)))
|
|
print(list(enumerate(iterable=[1, 2, 3])))
|
|
print(list(enumerate(iterable=[1, 2, 3], start=1)))
|