MCPcopy Index your code
hub / github.com/python/mypy / test_topsort_orphan

Method test_topsort_orphan

mypy/test/testgraph.py:34–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 assert_equal(res, [{d}, {b, c}, {a}])
33
34 def test_topsort_orphan(self) -> None:
35 a = frozenset({"A"})
36 b = frozenset({"B"})
37 data: dict[AbstractSet[str], set[AbstractSet[str]]] = {a: {b}}
38 res = list(topsort(data))
39 assert_equal(res, [{b}, {a}])
40
41 def test_topsort_independent(self) -> None:
42 a = frozenset({"A"})

Callers

nothing calls this directly

Calls 4

topsortClass · 0.90
assert_equalFunction · 0.90
frozensetClass · 0.85
listClass · 0.85

Tested by

no test coverage detected