mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tests/basics: Rename remaining tests that are for built-in functions.
For consistency with all of the other tests that are named builtin_XXX.py.
This commit is contained in:
16
tests/basics/builtin_enumerate.py
Normal file
16
tests/basics/builtin_enumerate.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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)))
|
||||
Reference in New Issue
Block a user