Skip to content

Commit 659d997

Browse files
committed
Adjust tests.
1 parent dc7a710 commit 659d997

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

axelrod/tests/strategies/test_meta.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class TestMetaMajorityFiniteMemory(TestMetaPlayer):
369369
}
370370

371371
def test_strategy(self):
372-
actions = [(C, C), (C, D), (D, C), (C, D), (C, C)]
372+
actions = [(C, C), (C, D), (D, C), (C, D), (D, C)]
373373
self.versus_test(opponent=axelrod.Alternator(), expected_actions=actions)
374374

375375

@@ -430,7 +430,7 @@ class TestMetaWinnerFiniteMemory(TestMetaPlayer):
430430
}
431431

432432
def test_strategy(self):
433-
actions = [(C, C), (C, D), (C, C), (D, D), (D, C)]
433+
actions = [(C, C), (C, D), (C, C), (C, D), (D, C)]
434434
self.versus_test(opponent=axelrod.Alternator(), expected_actions=actions)
435435

436436

@@ -578,7 +578,7 @@ class TestNMWEStochastic(TestMetaPlayer):
578578
}
579579

580580
def test_strategy(self):
581-
actions = [(C, C), (C, D), (C, C), (D, D), (D, C)]
581+
actions = [(C, C), (C, D), (C, C), (C, D), (D, C)]
582582
self.versus_test(opponent=axelrod.Alternator(), expected_actions=actions,
583583
seed=20)
584584

@@ -597,7 +597,7 @@ class TestNMWEFiniteMemory(TestMetaPlayer):
597597
}
598598

599599
def test_strategy(self):
600-
actions = [(C, C), (C, D), (D, C), (D, D), (C, C)]
600+
actions = [(C, C), (C, D), (D, C), (D, D), (D, C)]
601601
self.versus_test(opponent=axelrod.Alternator(), expected_actions=actions)
602602

603603

axelrod/tests/unit/test_classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def test_multiple_instances(self):
2828
P2 = axl.MemoryOnePlayer(four_vector=(1, 0, 0, 1))
2929
self.assertNotEqual(P1.classifier, P2.classifier)
3030

31-
P1 = axl.Joss()
32-
P2 = axl.Joss(p=0)
31+
P1 = axl.FirstByJoss()
32+
P2 = axl.FirstByJoss(p=0)
3333
self.assertNotEqual(P1.classifier, P2.classifier)
3434

3535
P1 = axl.GTFT(p=1)

0 commit comments

Comments
 (0)