Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxins committed Apr 22, 2024
1 parent 2c8af92 commit b85915c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/digraph/test_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def test_remove_nodes_retain_edges_single_edge(self):
res = dag.nodes()
self.assertEqual(["a", "c"], res)
self.assertEqual([0, 2], dag.node_indexes())
self.assertTrue(dag.has_node(node_a))
self.assertTrue(dag.has_edge(node_a, node_c))
self.assertEqual(dag.get_all_edge_data(node_a, node_c), ["Edgy"])

Expand All @@ -97,6 +98,7 @@ def test_remove_nodes_retain_edges_single_edge_outgoing_weight(self):
res = dag.nodes()
self.assertEqual(["a", "c"], res)
self.assertEqual([0, 2], dag.node_indexes())
self.assertTrue(dag.has_node(node_a))
self.assertTrue(dag.has_edge(node_a, node_c))
self.assertEqual(dag.get_all_edge_data(node_a, node_c), ["Edgy_mk2"])

Expand Down

0 comments on commit b85915c

Please sign in to comment.