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 handshake. #981

Merged
merged 1 commit into from
Apr 22, 2017
Merged

Refactor tests for handshake. #981

merged 1 commit into from
Apr 22, 2017

Conversation

drvinceknight
Copy link
Member

For #884


self.responses_test([D], [C, D] * 2, [D, C] * 2)
self.responses_test([C], [C, D] * 2, [C, D] * 2)
opponent = axelrod.MockPlayer([C])
Copy link
Member

Choose a reason for hiding this comment

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

Cooperator?

self.responses_test([D] * 20, [C, D], [C, C])
self.responses_test([D] * 20, [C, D], [D, C])
self.responses_test([D] * 20, [C, D], [D, D])
opponent = axelrod.MockPlayer([C, D])
Copy link
Member

Choose a reason for hiding this comment

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

alternator?

actions = [(C, D), (D, C)] + [(D, D), (D, C)] * 10
self.versus_test(opponent, expected_actions=actions)

opponent = axelrod.MockPlayer([D])
Copy link
Member

Choose a reason for hiding this comment

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

defector?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. No idea why I did this that way.

@drvinceknight
Copy link
Member Author

Fixed.

@meatballs meatballs merged commit e71b88f into master Apr 22, 2017
@meatballs meatballs deleted the 884-handshake branch April 22, 2017 09:28
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