Skip to content

Commit 2acc705

Browse files
kjurgielajtismarcharper
authored andcommitted
Adding tests for TfT and Grudger
1 parent 9519d5e commit 2acc705

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

axelrod/tests/strategies/test_axelrod_first.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ def test_strategy(self):
174174
actions = [(C, D), (D, D) * 49, (D, D) * 6]
175175
self.versus_test(axelrod.Defector(), expected_actions=actions)
176176

177+
actions = [(C, C) * 50, (D, C), (C, C) * 5]
178+
self.versus_test(axelrod.Grumpy(), expected_actions=actions)
179+
180+
actions = [(C, C) * 50, (D, C), (C, D) * 5]
181+
self.versus_test(axelrod.Grudger(), expected_actions=actions)
182+
177183

178184
class TestGrofman(TestPlayer):
179185

0 commit comments

Comments
 (0)