summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-12 16:39:39 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-12 16:39:39 +0000
commit2a24172cdcdb5286c48afd6cf726548848e4840f (patch)
tree39c4569057613c7c157f94ac36d7329b7bf3e4f8 /tests
parent3b0bd87906eb301ebfe6588773ebfe07b0509ad8 (diff)
Implemented set.discard
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/set_discard.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/tests/set_discard.py b/tests/basics/tests/set_discard.py
new file mode 100644
index 000000000..baac26413
--- /dev/null
+++ b/tests/basics/tests/set_discard.py
@@ -0,0 +1,3 @@
+s = {1, 2}
+print(s.discard(1))
+print(list(s))