(self)
| 95 | self.assertEqual([*ts.static_order()], [2, 1]) |
| 96 | |
| 97 | def test_graph_with_iterables(self): |
| 98 | dependson = (2 * x + 1 for x in range(5)) |
| 99 | ts = graphlib.TopologicalSorter({0: dependson}) |
| 100 | self.assertEqual(list(ts.static_order()), [1, 3, 5, 7, 9, 0]) |
| 101 | |
| 102 | def test_add_dependencies_for_same_node_incrementally(self): |
| 103 | # Test same node multiple times |
nothing calls this directly
no test coverage detected