(self)
| 56 | assert_equal(res, [{d}, {c}, {b}, {a}]) |
| 57 | |
| 58 | def test_topsort_self_dependency(self) -> None: |
| 59 | a = frozenset({"A"}) |
| 60 | b = frozenset({"B"}) |
| 61 | data: dict[AbstractSet[str], set[AbstractSet[str]]] = {a: {a, b}, b: set()} |
| 62 | res = list(topsort(data)) |
| 63 | assert_equal(res, [{b}, {a}]) |
| 64 | |
| 65 | def test_topsort_orphan_diamond(self) -> None: |
| 66 | a = frozenset({"A"}) |
nothing calls this directly
no test coverage detected