mirror of https://github.com/flaggo/pydu.git
improve test for set
This commit is contained in:
parent
a2aa10a6d4
commit
1fff461708
|
@ -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)
|
Loading…
Reference in New Issue