Skip to content

Update luhn and add luhn test template #160

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 2 commits into from
Feb 26, 2017
Merged

Conversation

haus
Copy link
Contributor

@haus haus commented Feb 19, 2017

This PR should resolve #159 by adding a test template for the luhn exercise and updating the example solution to pass the new tests.

haus added 2 commits February 18, 2017 18:53
Changes to x-common updated the tests and description for luhn to only
test the validity check and not test addends or check digit generation.
This commit adds a test generator for the luhn exercise and updates the
example solution to pass the updated tests. In moving to use the
canonical test data, the inputs to luhn are now strings, so the example
solution was also updated to take that into account.
@haus haus mentioned this pull request Feb 25, 2017
@yurrriq
Copy link
Member

yurrriq commented Feb 25, 2017

@haus, merge if you're satisfied. After a quick glance it looks cool to me.

@haus haus merged commit 0d9fff0 into exercism:master Feb 26, 2017
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.

Changes to Luhn tests
2 participants