summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/list_insert.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/tests/list_insert.py b/tests/basics/tests/list_insert.py
new file mode 100644
index 000000000..6db97cf5c
--- /dev/null
+++ b/tests/basics/tests/list_insert.py
@@ -0,0 +1,9 @@
+a = [1, 2, 3]
+a.insert(1, 42)
+print(a)
+a.insert(-1, -1)
+print(a)
+a.insert(99, 99)
+print(a)
+a.insert(-99, -99)
+print(a)