@@ -173,10 +173,11 @@ def transitions_test(self, state_and_action):
173
173
expected_actions .append ((fsm_move , current_opponent_move ))
174
174
opponent_actions .append (current_opponent_move )
175
175
176
- self .verify_against_finite_state_machine (current_state = current_state ,
177
- expected_state = new_state ,
178
- last_opponent_move = last_opponent_move ,
179
- expected_move = fsm_move )
176
+ self .verify_against_finite_state_machine (
177
+ current_state = current_state ,
178
+ expected_state = new_state ,
179
+ last_opponent_move = last_opponent_move ,
180
+ expected_move = fsm_move )
180
181
181
182
self .versus_test (axelrod .MockPlayer (actions = opponent_actions ),
182
183
expected_actions = expected_actions )
@@ -790,7 +791,7 @@ class TestTF1(TestFSMPlayer):
790
791
name = "TF1"
791
792
player = axelrod .TF1
792
793
expected_classifier = {
793
- 'memory_depth' : 16 ,
794
+ 'memory_depth' : float ( 'inf' ) ,
794
795
'stochastic' : False ,
795
796
'makes_use_of' : set (),
796
797
'long_run_time' : False ,
@@ -801,13 +802,15 @@ class TestTF1(TestFSMPlayer):
801
802
802
803
def test_strategy (self ):
803
804
self .first_play_test (C )
805
+ actions = [(C , C ), (C , D ), (D , C ), (D , D ), (D , C )]
806
+ self .versus_test (axelrod .Alternator (), expected_actions = actions )
804
807
805
808
806
809
class TestTF2 (TestFSMPlayer ):
807
810
name = "TF2"
808
811
player = axelrod .TF2
809
812
expected_classifier = {
810
- 'memory_depth' : 16 ,
813
+ 'memory_depth' : float ( 'inf' ) ,
811
814
'stochastic' : False ,
812
815
'makes_use_of' : set (),
813
816
'long_run_time' : False ,
@@ -818,13 +821,15 @@ class TestTF2(TestFSMPlayer):
818
821
819
822
def test_strategy (self ):
820
823
self .first_play_test (C )
824
+ actions = [(C , C ), (D , D ), (D , C ), (C , D ), (D , C )]
825
+ self .versus_test (axelrod .Alternator (), expected_actions = actions )
821
826
822
827
823
828
class TestTF3 (TestFSMPlayer ):
824
829
name = "TF3"
825
830
player = axelrod .TF3
826
831
expected_classifier = {
827
- 'memory_depth' : 8 ,
832
+ 'memory_depth' : float ( 'inf' ) ,
828
833
'stochastic' : False ,
829
834
'makes_use_of' : set (),
830
835
'long_run_time' : False ,
@@ -835,3 +840,5 @@ class TestTF3(TestFSMPlayer):
835
840
836
841
def test_strategy (self ):
837
842
self .first_play_test (C )
843
+ actions = [(C , C ), (C , D ), (C , C ), (D , D ), (D , C )]
844
+ self .versus_test (axelrod .Alternator (), expected_actions = actions )
0 commit comments