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

Update test_selfsteem.py #933

Merged
merged 3 commits into from Mar 27, 2017
Merged

Update test_selfsteem.py #933

merged 3 commits into from Mar 27, 2017

Conversation

ghost
Copy link

@ghost ghost commented Mar 25, 2017

No description provided.

Copy link
Member

@drvinceknight drvinceknight left a comment

Choose a reason for hiding this comment

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

Thanks @alajara! This is looking good now, just the one minor PEP8 fix :)


# Check for f > 0.95, defect
actions = [(C, C), (C, C), (D, C), (D, C)]
self.versus_test(axelrod.Cooperator(), expected_actions = actions)
Copy link
Member

Choose a reason for hiding this comment

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

Could you change expected_actions = actions to expected_actions=actions (no space either side of =).

This is a PEP8 thing.

Copy link
Member

@drvinceknight drvinceknight left a comment

Choose a reason for hiding this comment

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

This looks good to me. 👍

self.responses_test([D], [C] * 16, [D] * 16)
self.responses_test([C], [D] * 9, [C] * 9)

# Check for f > 0.95, defect
Copy link
Member

Choose a reason for hiding this comment

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

Lines 24-57 are over indented - they have gained an extra 4 spaces of indentation.

Could you move them all back to 8 spaces rather than 12?

@drvinceknight
Copy link
Member

I'm happy if you are @meatballs.

@meatballs meatballs merged commit e244af9 into Axelrod-Python:master Mar 27, 2017
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

2 participants