From 4a08067c0c9c8417525e89eef4c3693cdc05b954 Mon Sep 17 00:00:00 2001 From: "John R. Lenton" Date: Sun, 12 Jan 2014 18:03:21 +0000 Subject: Implemented set.isdisjoint --- tests/basics/tests/set_isdisjoint.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/basics/tests/set_isdisjoint.py (limited to 'tests') diff --git a/tests/basics/tests/set_isdisjoint.py b/tests/basics/tests/set_isdisjoint.py new file mode 100644 index 000000000..7fb7e769b --- /dev/null +++ b/tests/basics/tests/set_isdisjoint.py @@ -0,0 +1,6 @@ +s = {1, 2, 3, 4} +print(s.isdisjoint({1})) +print(s.isdisjoint([2])) +print(s.isdisjoint([])) +print(s.isdisjoint({7,8,9,10})) +print(s.isdisjoint([7,8,9,1])) -- cgit v1.2.3