Skip to content

luhn: Update tests and example#409

Merged
behrtam merged 5 commits intoexercism:masterfrom
rootulp:luhn/tests
Mar 9, 2017
Merged

luhn: Update tests and example#409
behrtam merged 5 commits intoexercism:masterfrom
rootulp:luhn/tests

Conversation

@rootulp
Copy link
Copy Markdown
Contributor

@rootulp rootulp commented Jan 29, 2017

@behrtam
Copy link
Copy Markdown
Contributor

behrtam commented Jan 30, 2017

We should keep an eye on those luhn related issues:
exercism/problem-specifications#522
exercism/problem-specifications#523

@rootulp
Copy link
Copy Markdown
Contributor Author

rootulp commented Feb 3, 2017

Good point. I expect the canonical-data to change so we should keep this open until that gets resolved.

@behrtam
Copy link
Copy Markdown
Contributor

behrtam commented Feb 22, 2017

@rootulp
Copy link
Copy Markdown
Contributor Author

rootulp commented Feb 27, 2017

@behrtam sorry for the slow response! I updated the canonical tests.

def test_more_than_a_single_zero_is_valid(self):
self.assertTrue(Luhn("0000 0").is_valid())

def test_is_valid_can_be_called_repeatedly(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would like to leave this mutability test case (#136) as it is.
Maybe we could put it as the last test with a comment (# additional track specific test case).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added back with the comment you suggested. I replaced the test value with "055 444 285" because it exists in the canonical data.

@behrtam behrtam merged commit ac7f404 into exercism:master Mar 9, 2017
@behrtam
Copy link
Copy Markdown
Contributor

behrtam commented Mar 9, 2017

Thanks for your work!

@rootulp rootulp deleted the luhn/tests branch March 10, 2017 17:48
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