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 memory two test. #1031

Merged
merged 1 commit into from
Jun 1, 2017
Merged

Refactor memory two test. #1031

merged 1 commit into from
Jun 1, 2017

Conversation

drvinceknight
Copy link
Member

Addresses #884.

Some of the test cases were not reproducible (they relied on impossible histories) but what I've got there does test everything (I believe!) and I'm also now carefully checking the attributes.

actions = [(C, D), (D, D)]
self.versus_test(opponent=axelrod.Defector(), expected_actions=actions,
attrs={"play_as": "TFT", "shift_counter": 1,
"alld_counter": 0})
# TFTT if C, D and D, C
Copy link
Member

Choose a reason for hiding this comment

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

Are we still testing both possible TFTT cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll double check 👍🙂

Copy link
Member Author

@drvinceknight drvinceknight May 31, 2017

Choose a reason for hiding this comment

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

I've just checked by removing each case and the test fails so this test is hitting both of them. 👍

@marcharper marcharper merged commit a166645 into master Jun 1, 2017
@marcharper marcharper deleted the 884-memorytwo branch July 19, 2017 14:31
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.

3 participants