summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/enumerate.py6
-rw-r--r--tests/basics/tests/filter.py2
-rw-r--r--tests/basics/tests/map.py4
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/basics/tests/enumerate.py b/tests/basics/tests/enumerate.py
new file mode 100644
index 000000000..f2bdf4f32
--- /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))))
+
diff --git a/tests/basics/tests/filter.py b/tests/basics/tests/filter.py
new file mode 100644
index 000000000..5883e3d00
--- /dev/null
+++ b/tests/basics/tests/filter.py
@@ -0,0 +1,2 @@
+print(list(filter(lambda x: x & 1, range(-3, 4))))
+print(list(filter(None, range(-3, 4))))
diff --git a/tests/basics/tests/map.py b/tests/basics/tests/map.py
new file mode 100644
index 000000000..62dca44ed
--- /dev/null
+++ b/tests/basics/tests/map.py
@@ -0,0 +1,4 @@
+print(list(map(lambda x: x & 1, range(-3, 4))))
+print(list(map(abs, range(-3, 4))))
+print(list(map(set, [[i] for i in range(-3, 4)])))
+print(list(map(pow, range(4), range(4))))