From 07205ec323ca98d1c23af51e099119954d0fe7a4 Mon Sep 17 00:00:00 2001 From: John R. Lenton Date: Mon, 13 Jan 2014 02:31:00 +0000 Subject: added zip() --- tests/basics/tests/zip.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/basics/tests/zip.py (limited to 'tests') diff --git a/tests/basics/tests/zip.py b/tests/basics/tests/zip.py new file mode 100644 index 000000000..c0109094f --- /dev/null +++ b/tests/basics/tests/zip.py @@ -0,0 +1,2 @@ +print(list(zip())) +print(list(zip([1], {2,3}))) -- cgit v1.2.3 From 5c7683955994b965270598559e979c581ddc1950 Mon Sep 17 00:00:00 2001 From: John R. Lenton Date: Mon, 13 Jan 2014 05:12:50 +0000 Subject: sorted --- tests/basics/tests/sorted.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/basics/tests/sorted.py (limited to 'tests') diff --git a/tests/basics/tests/sorted.py b/tests/basics/tests/sorted.py new file mode 100644 index 000000000..bbec31946 --- /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))) -- cgit v1.2.3