diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-12 18:03:21 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-12 18:03:21 +0000 |
commit | 4a08067c0c9c8417525e89eef4c3693cdc05b954 (patch) | |
tree | d55dd960e076d53042c4de77d1e6fe217017e22a /tests/basics | |
parent | f1ae6b48fbc88d4acdbe1136f56c136f8e1b2991 (diff) | |
download | micropython-4a08067c0c9c8417525e89eef4c3693cdc05b954.tar.gz micropython-4a08067c0c9c8417525e89eef4c3693cdc05b954.zip |
Implemented set.isdisjoint
Diffstat (limited to 'tests/basics')
-rw-r--r-- | tests/basics/tests/set_isdisjoint.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/tests/set_isdisjoint.py b/tests/basics/tests/set_isdisjoint.py new file mode 100644 index 0000000000..7fb7e769bb --- /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])) |