summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-14 15:13:40 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-14 15:13:40 -0800
commit6c2401e935b38ca87fd8f52efbb614a428b6938c (patch)
tree9314200eddfd45d99491cb29f47533404ef030f5 /tests
parent8bc96471f0219b9d3f24ae879f60b509927e1df4 (diff)
parent93451002f04e0b89e41e1faa82f86e937bb219f1 (diff)
downloadmicropython-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.py2
-rw-r--r--tests/basics/tests/zip.py2
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})))