project updates
This commit is contained in:
@@ -46,6 +46,11 @@ class TestDAGSetBasicOps:
|
||||
s = DAGSetView({1, 2, 3})
|
||||
assert len(s) == 3
|
||||
|
||||
def test_iter(self) -> None:
|
||||
s = DAGSetView({1, 2, 3})
|
||||
for i, v in enumerate(s):
|
||||
assert v == i + 1
|
||||
|
||||
def test_contains(self) -> None:
|
||||
s = DAGSetView({1, 2, 3})
|
||||
assert 1 in s
|
||||
@@ -80,11 +85,6 @@ class TestDAGSetBasicOps:
|
||||
with pytest.raises(KeyError):
|
||||
s.remove(99)
|
||||
|
||||
def test_iter(self) -> None:
|
||||
s = DAGSetView({1, 2, 3})
|
||||
for i, v in enumerate(s):
|
||||
assert v == i + 1
|
||||
|
||||
|
||||
class TestDAGSetCallbacks:
|
||||
"""Test callback mechanisms."""
|
||||
|
||||
Reference in New Issue
Block a user