From 96916a0de3b29ff03f60a000a500731bdf60c458 Mon Sep 17 00:00:00 2001 From: root-11 Date: Tue, 27 Feb 2024 11:05:03 +0000 Subject: [PATCH] Added more tests (#39) --- tests/test_topology.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_topology.py b/tests/test_topology.py index 69da4e9..3547c0d 100644 --- a/tests/test_topology.py +++ b/tests/test_topology.py @@ -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.