From 8c3858b01623f9527b57b13c44ff97c67bafb00b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 19 Jan 2014 18:41:55 +0200 Subject: Move tests in basic/tests/ up one level preparating to multiple test dirs. --- tests/basics/set_intersection.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/basics/set_intersection.py (limited to 'tests/basics/set_intersection.py') diff --git a/tests/basics/set_intersection.py b/tests/basics/set_intersection.py new file mode 100644 index 000000000..6f3dfc741 --- /dev/null +++ b/tests/basics/set_intersection.py @@ -0,0 +1,12 @@ +def report(s): + l = list(s) + l.sort() + print(l) + +s = {1, 2, 3, 4} +report(s) +report(s.intersection({1, 3})) +report(s.intersection([3, 4])) + +print(s.intersection_update([1])) +report(s) -- cgit v1.2.3