summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-14 23:55:01 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-14 23:55:01 +0000
commit9daa78943e58602f74c89a2b5b1ed225f4ccf6cc (patch)
treea5ea774c04ce313d437654cf49b085732e480791 /tests
parent6c2401e935b38ca87fd8f52efbb614a428b6938c (diff)
downloadmicropython-9daa78943e58602f74c89a2b5b1ed225f4ccf6cc.tar.gz
micropython-9daa78943e58602f74c89a2b5b1ed225f4ccf6cc.zip
added enumerate()
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/enumerate.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/tests/enumerate.py b/tests/basics/tests/enumerate.py
new file mode 100644
index 0000000000..f2bdf4f326
--- /dev/null
+++ b/tests/basics/tests/enumerate.py
@@ -0,0 +1,6 @@
+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(10000))))
+