Skip to content

Commit be46365

Browse files
committed
Adding coverage to frequency analyzer
1 parent a7f6a40 commit be46365

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

axelrod/tests/strategies/test_frequency_analyzer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ def test_strategy_cooperator(self):
4444
self.versus_test(
4545
axl.MockPlayer(opponent_actions), expected_actions=expected, seed=4
4646
)
47+
# Test games after dataset generation phase (> 30 turns)
48+
opponent_actions = [C] * 50
49+
expected = [(C, C)] * 50
50+
self.versus_test(
51+
axl.MockPlayer(opponent_actions), expected_actions=expected, seed=4
52+
)
4753

4854
def test_strategy_random(self):
4955
# Test of 50 turns against random strategy

0 commit comments

Comments
 (0)