Skip to content

Commit 5a72f72

Browse files
committed
Change seed in Moran process test.
The current seed was not giving the result written in the comment.
1 parent d744fce commit 5a72f72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

axelrod/tests/unit/test_moran.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ def test_different_game(self):
188188
# Possible for Cooperator to become fixed when using a different game
189189
p1, p2 = axl.Cooperator(), axl.Defector()
190190
game = axl.Game(r=4, p=2, s=1, t=6)
191-
mp = MoranProcess((p1, p2), turns=5, game=game, seed=88)
191+
mp = MoranProcess((p1, p2), turns=5, game=game, seed=3)
192192
populations = mp.play()
193+
self.assertEqual(mp.winning_strategy_name, str(p1))
193194
self.assertEqual(mp.winning_strategy_name, str(p2))
194195

195196
def test_death_birth(self):

0 commit comments

Comments
 (0)