Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TieuLongPhan committed Jul 15, 2024
1 parent 81bbbfb commit b3091f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Test/SynRule/test_hierarchical_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ def test_fit(self):
assert "Cluster_R1" in reaction_dicts[0].keys()
assert "Cluster_R2" in reaction_dicts[0].keys()
assert "Cluster_R3" in reaction_dicts[0].keys()
self.assertEqual(reaction_dicts[0]["Reaction Type"], "Single Cyclic")
self.assertEqual(reaction_dicts[0]["Reaction Type"], "Elementary")
self.assertEqual(reaction_dicts[0]["Topo Type"], "Single Cyclic")
self.assertEqual(reaction_dicts[0]["Rings"][0], 4) # 0 1 2 3
self.assertEqual(reaction_dicts[0]["Reaction Step"], 1) # 0 1 2 3

# assert templates
self.assertEqual(len(templates), 4) # 0 1 2 3
Expand Down
2 changes: 1 addition & 1 deletion Test/SynUtils/test_graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_check_graph_type(self):
# Test check_graph_type method
self.assertEqual(check_graph_type(tree_graph), "Acyclic")
self.assertEqual(check_graph_type(single_cycle_graph), "Single Cyclic")
self.assertEqual(check_graph_type(two_cycle_graph), "Complex Cyclic")
self.assertEqual(check_graph_type(two_cycle_graph), "Combinatorial Cyclic")

def test_get_cycle_member_rings(self):
# Create a test graph with cycles of different sizes
Expand Down

0 comments on commit b3091f1

Please sign in to comment.