Skip to content

Commit 69723ee

Browse files
committed
added memory depth change test
1 parent a49d448 commit 69723ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

axelrod/tests/strategies/test_titfortat.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,3 +689,8 @@ def test_strategy(self):
689689
opponent = axelrod.MockPlayer(actions=[acts[1] for acts in actions])
690690
self.versus_test(opponent=opponent,
691691
expected_actions=actions, init_kwargs={'N': 3, 'M': 2})
692+
693+
def test_varying_memory_depth(self):
694+
self.assertEqual(self.player().classifier['memory_depth'], 1)
695+
self.assertEqual(self.player(0, 3).classifier['memory_depth'], 3)
696+
self.assertEqual(self.player(5, 3).classifier['memory_depth'], 5)

0 commit comments

Comments
 (0)