Skip to content
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

Merged
merged 2 commits into from
May 25, 2017
Merged

Refactor tests for punisher. #1021

merged 2 commits into from
May 25, 2017

Conversation

drvinceknight
Copy link
Member

Contributes towards #884

Contributes towards #884
self.assertEqual(P1.grudged, False)
self.assertEqual(P1.grudge_memory, 1)
player = axelrod.Punisher()
self.assertEqual(player.history, [])
Copy link
Member

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.

Copy link
Member Author

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 👍

Copy link
Member Author

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, [])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment

@meatballs meatballs merged commit 7a65c17 into master May 25, 2017
@meatballs meatballs deleted the 884-punisher branch May 25, 2017 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants