Skip to content

Commit 14b088d

Browse files
committed
fix summary test
1 parent 18e34e5 commit 14b088d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

axelrod/tests/unit/test_resultset.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def test_summarise_regression_test(self):
638638
]
639639
tournament = axl.Tournament(players, turns=10, repetitions=3)
640640
results = tournament.play()
641-
641+
print(results.write_summary("other_test.csv"))
642642
summary = [
643643
(
644644
0,
@@ -647,6 +647,7 @@ def test_summarise_regression_test(self):
647647
0.0,
648648
3.0,
649649
0.0,
650+
1,
650651
0.0,
651652
0.0,
652653
0.4000000000000001,
@@ -663,6 +664,7 @@ def test_summarise_regression_test(self):
663664
0.7,
664665
0.0,
665666
1.0,
667+
2,
666668
0.6666666666666666,
667669
0.03333333333333333,
668670
0.0,
@@ -679,6 +681,7 @@ def test_summarise_regression_test(self):
679681
0.7,
680682
0.0,
681683
1.0,
684+
3,
682685
0.6666666666666666,
683686
0.03333333333333333,
684687
0.0,
@@ -695,6 +698,7 @@ def test_summarise_regression_test(self):
695698
1.0,
696699
0.0,
697700
1.0,
701+
0,
698702
0.6666666666666666,
699703
0.3333333333333333,
700704
0.0,
@@ -724,7 +728,7 @@ def test_write_summary(self):
724728
csvreader = csv.reader(csvfile)
725729
for row in csvreader:
726730
ranked_names.append(row[1])
727-
self.assertEqual(len(row), 14)
731+
self.assertEqual(len(row), 15)
728732
self.assertEqual(ranked_names[0], "Name")
729733
self.assertEqual(ranked_names[1:], rs.ranked_names)
730734

0 commit comments

Comments
 (0)