summaryrefslogtreecommitdiff
path: root/tests/basics
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-03 23:42:17 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-03 23:42:17 +0000
commit26c211648bc00085233ece9c53f19a64ecca41fa (patch)
tree31f713fc4a1b1c8f1dbb8e95b5276cc84dcc0a41 /tests/basics
parent069ded95147c26a1c5b5a4c2c21c1daf94191bb5 (diff)
Implemented list.copy. Fixes issue #54.
Diffstat (limited to 'tests/basics')
-rw-r--r--tests/basics/tests/list_copy.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/tests/list_copy.py b/tests/basics/tests/list_copy.py
new file mode 100644
index 000000000..bc450782e
--- /dev/null
+++ b/tests/basics/tests/list_copy.py
@@ -0,0 +1,7 @@
+# list copy tests
+a = [1, 2, []]
+b = a.copy()
+a[-1].append(1)
+a.append(4)
+print(a)
+print(b)