test updates
This commit is contained in:
@@ -25,8 +25,9 @@ class TestDAGOps:
|
||||
def test_add_single_edge(self) -> None:
|
||||
g = DAG[str]()
|
||||
g.add_edge("a", "b")
|
||||
assert "b" in g["a"]
|
||||
assert "a" in g.reverse["b"]
|
||||
assert "a" in g._succ
|
||||
assert "b" in g._succ["a"]
|
||||
assert "a" in g._pred["b"]
|
||||
|
||||
def test_add_multiple_edges(self) -> None:
|
||||
g = DAG[str]()
|
||||
|
||||
@@ -34,10 +34,6 @@ class TestDAGSetInit:
|
||||
s = DAGSetView(None)
|
||||
assert len(s) == 0
|
||||
|
||||
def test_from_invalid_type(self) -> None:
|
||||
with pytest.raises(TypeError):
|
||||
DAGSetView(42) # type: ignore
|
||||
|
||||
|
||||
class TestDAGSetBasicOps:
|
||||
"""Test basic set operations."""
|
||||
|
||||
Reference in New Issue
Block a user