Skip to content

Commit

Permalink
Added more tests (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
root-11 committed Feb 27, 2024
1 parent 5bbd143 commit 96916a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ def test_has_cycles():
g.add_node(4)
assert g.has_cycles()

g.add_edge(4,5)
assert g.has_cycles()
g.add_edge(5,4)
assert g.has_cycles()


def test_is_really_cyclic():
g = Graph(from_list=[(1, 1, 1), (2, 2, 1)]) # two loops onto themselves.
Expand Down

0 comments on commit 96916a0

Please sign in to comment.