summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-12 15:56:25 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-12 15:56:25 +0000
commit3b0bd87906eb301ebfe6588773ebfe07b0509ad8 (patch)
treebfaf5a2159665157ac8fd0547ccbd78ba3c02efe /tests
parent1d7fb2f21be8dd6f95e5889442a3735464c94dfb (diff)
Implemented set.copy
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/set_copy.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/tests/set_copy.py b/tests/basics/tests/set_copy.py
new file mode 100644
index 000000000..2ea308b0d
--- /dev/null
+++ b/tests/basics/tests/set_copy.py
@@ -0,0 +1,8 @@
+s = {1, 2, 3, 4}
+t = s.copy()
+s.add(5)
+t.add(7)
+for i in s, t:
+ l = list(i)
+ l.sort()
+ print(l)