Skip to content

luhn: non-digit at end is invalid#1420

Merged
bitfield merged 1 commit intoexercism:masterfrom
bitfield:luhn/non-digit
Dec 22, 2018
Merged

luhn: non-digit at end is invalid#1420
bitfield merged 1 commit intoexercism:masterfrom
bitfield:luhn/non-digit

Conversation

@bitfield
Copy link
Copy Markdown
Contributor

From luhn: add test case with non-digit at the end:

Problem: I had a student only include the digits before the first invalid character. There was no test that failed his solution.

Solution: Added a test that should return false but does not if the student takes only the numbers up to first non-digit.

@rpottsoh
Copy link
Copy Markdown
Member

Let me know if you need me to merge.

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