Skip to content

palindrome-products: update tests to v1.1.0 #1308

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

Merged
merged 3 commits into from
Feb 20, 2018

Conversation

mrcfps
Copy link

@mrcfps mrcfps commented Feb 17, 2018

Closes #1222. Canonical data.

  • Update version number
  • Use assertRaisesWithMessage instead of plain assertRaises

* Update version number
* Use `assertRaisesWithMessage`
value, factors = smallest_palindrome(min_factor=10000,
max_factor=1)

def test_error_for_largest_if_min_is_more_than_max(self):
with self.assertRaises(ValueError):
with self.assertRaisesWithMessage(ValueError):
value, factors = largest_palindrome(min_factor=2, max_factor=1)

# Utility methods
Copy link
Contributor

Choose a reason for hiding this comment

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

Redundant comment; please remove.

@cmccandless cmccandless merged commit fece5b2 into exercism:master Feb 20, 2018
@mrcfps mrcfps deleted the palindrome-products branch February 26, 2018 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants