diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-14 15:13:40 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-14 15:13:40 -0800 |
commit | 6c2401e935b38ca87fd8f52efbb614a428b6938c (patch) | |
tree | 9314200eddfd45d99491cb29f47533404ef030f5 /tests | |
parent | 8bc96471f0219b9d3f24ae879f60b509927e1df4 (diff) | |
parent | 93451002f04e0b89e41e1faa82f86e937bb219f1 (diff) | |
download | micropython-6c2401e935b38ca87fd8f52efbb614a428b6938c.tar.gz micropython-6c2401e935b38ca87fd8f52efbb614a428b6938c.zip |
Merge pull request #165 from chipaca/builtins
added zip()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/tests/sorted.py | 2 | ||||
-rw-r--r-- | tests/basics/tests/zip.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/tests/sorted.py b/tests/basics/tests/sorted.py new file mode 100644 index 0000000000..bbec319460 --- /dev/null +++ b/tests/basics/tests/sorted.py @@ -0,0 +1,2 @@ +print(sorted(set(range(100)))) +print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2))) diff --git a/tests/basics/tests/zip.py b/tests/basics/tests/zip.py new file mode 100644 index 0000000000..c0109094f4 --- /dev/null +++ b/tests/basics/tests/zip.py @@ -0,0 +1,2 @@ +print(list(zip())) +print(list(zip([1], {2,3}))) |