diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-14 23:55:01 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-14 23:55:01 +0000 |
commit | 9daa78943e58602f74c89a2b5b1ed225f4ccf6cc (patch) | |
tree | a5ea774c04ce313d437654cf49b085732e480791 /tests | |
parent | 6c2401e935b38ca87fd8f52efbb614a428b6938c (diff) | |
download | micropython-9daa78943e58602f74c89a2b5b1ed225f4ccf6cc.tar.gz micropython-9daa78943e58602f74c89a2b5b1ed225f4ccf6cc.zip |
added enumerate()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/tests/enumerate.py | 6 |
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)))) + |