Skip to content

Commit 239a511

Browse files
committed
Fix typo.
1 parent eb612f5 commit 239a511

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

axelrod/tests/strategies/test_player.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def test_equality(self):
187187
self.assertEqual(p1, p2)
188188

189189
def test_equality_for_numpy_array(self):
190-
# Check numpy array attribute (a special case)
190+
"""Check numpy array attribute (a special case)"""
191191
p1 = axelrod.Cooperator()
192192
p2 = axelrod.Cooperator()
193193

@@ -251,16 +251,16 @@ def test_equality_for_cycle(self):
251251
# Check that type is cycle
252252
self.assertIsInstance(p2.cycle, itertools.cycle)
253253

254-
def test_equaity_on_init(self):
255-
"""Test all instances of a strategy are equal on init"""
254+
def test_equality_on_init(self):
255+
"""Test instances of all strategies are equal on init"""
256256
for s in axelrod.strategies:
257257
p1, p2 = s(), s()
258258
# Check three times (so testing equality doesn't change anything)
259259
self.assertEqual(p1, p2)
260260
self.assertEqual(p1, p2)
261261
self.assertEqual(p1, p2)
262262

263-
def test_equaity_on_with_player_attributes(self):
263+
def test_equality_with_player_as_attributes(self):
264264
"""Test for a strange edge case where players have pointers to each
265265
other"""
266266
p1 = axelrod.Cooperator()

0 commit comments

Comments
 (0)