Skip to content

Commit f971c78

Browse files
meatballsmarcharper
authored andcommitted
Fix typo and make edges test explicit
1 parent a501333 commit f971c78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

axelrod/tests/unit/test_graph.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
class TestGraph(unittest.TestCase):
88

99
def test_init(self):
10-
# Undirected graph with not vertices
10+
# Undirected graph with no vertices
1111
g = graph.Graph()
1212
self.assertFalse(g.directed)
1313
self.assertIsInstance(g.out_mapping, defaultdict)
1414
self.assertIsInstance(g.in_mapping, defaultdict)
15-
self.assertFalse(g._edges)
15+
self.assertEqual(g._edges, [])
1616

1717
# Directed graph with no vertices
1818
g = graph.Graph(directed=True)
1919
self.assertTrue(g.directed)
2020
self.assertIsInstance(g.out_mapping, defaultdict)
2121
self.assertIsInstance(g.in_mapping, defaultdict)
22-
self.assertFalse(g._edges)
22+
self.assertEqual(g._edges, [])
2323

2424
# Undirected graph with vertices and unweighted edges
2525
g = graph.Graph(edges=[[1, 2], [2, 3]])

0 commit comments

Comments
 (0)