-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor tests for punisher. #1021
Conversation
Contributes towards #884
self.assertEqual(P1.grudged, False) | ||
self.assertEqual(P1.grudge_memory, 1) | ||
player = axelrod.Punisher() | ||
self.assertEqual(player.history, []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is probably not necessary, or is better as a generic player test in test_player.py
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good call. I'll clean this up now 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checked and it already is a generic player test :)
self.assertEqual(P1.grudged, False) | ||
self.assertEqual(P1.grudge_memory, 1) | ||
player = axelrod.InversePunisher() | ||
self.assertEqual(player.history, []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment
Contributes towards #884