-
Notifications
You must be signed in to change notification settings - Fork 263
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
Conversation
|
||
self.responses_test([D], [C, D] * 2, [D, C] * 2) | ||
self.responses_test([C], [C, D] * 2, [C, D] * 2) | ||
opponent = axelrod.MockPlayer([C]) |
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.
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]) |
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.
alternator?
actions = [(C, D), (D, C)] + [(D, D), (D, C)] * 10 | ||
self.versus_test(opponent, expected_actions=actions) | ||
|
||
opponent = axelrod.MockPlayer([D]) |
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.
defector?
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.
Good call. No idea why I did this that way.
b4bae88
to
c330ba2
Compare
Fixed. |
For #884