Skip to content

Commit

Permalink
testing clear/set of undirectedness on cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Jul 29, 2018
1 parent af5f0ad commit a11c710
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graphi_unittests/types_unittests/test_undirected.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,10 @@ def test_conversion(self):
""".strip())
graph = csv.graph_reader(literal.splitlines(), undirected=True)
self.assertTrue(slice("6", "1") in graph)
self.assertTrue(graph.undirected)
al_graph = adjacency_graph.AdjacencyGraph(graph)
self.assertTrue(slice("6", "1") in al_graph)
self.assertFalse(al_graph.undirected)
clone_undirected = adjacency_graph.AdjacencyGraph(graph, undirected=True)
self.assertTrue(slice("6", "1") in clone_undirected)
self.assertTrue(clone_undirected.undirected)

0 comments on commit a11c710

Please sign in to comment.