From 3b0bd87906eb301ebfe6588773ebfe07b0509ad8 Mon Sep 17 00:00:00 2001 From: John R. Lenton Date: Sun, 12 Jan 2014 15:56:25 +0000 Subject: Implemented set.copy --- tests/basics/tests/set_copy.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/basics/tests/set_copy.py (limited to 'tests/basics') 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) -- cgit v1.2.3