From 1fff461708ea25e78a2a811ba396fa375c9b1cd6 Mon Sep 17 00:00:00 2001 From: Prodesire Date: Sun, 24 Dec 2017 23:45:04 +0800 Subject: [PATCH] improve test for set --- tests/test_set.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_set.py b/tests/test_set.py index d6327e2..e9549be 100644 --- a/tests/test_set.py +++ b/tests/test_set.py @@ -7,6 +7,12 @@ def test_ordered_set(): assert 1 in ordered_set assert bool(ordered_set) + ordered_set.add(1) + assert 1 in ordered_set + + ordered_set.remove(1) + assert 1 not in ordered_set + for i in range(4): ordered_set.discard(i) - assert not bool(ordered_set) + assert not bool(ordered_set) \ No newline at end of file