Skip to content

Commit

Permalink
Luhn - add edge case description.
Browse files Browse the repository at this point in the history
A 0 or 1 length string is not valid, and nor is a string
with non-space characters in.
  • Loading branch information
stevejb71 committed Jan 11, 2017
1 parent 1f3fe70 commit 2b9264e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exercises/luhn/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ The task is to write a function that checks if a given string is valid.

Validating a Number
------
Strings of length 1 or less are not valid. Spaces are allowed in the input,
but they should be stripped before checking. All other non-digit characters
are disallowed.

As an example, here is a valid (but fictitious) Canadian Social Insurance
As an example of a valid string, here is a fictitious Canadian Social Insurance
Number.

```
Expand Down

0 comments on commit 2b9264e

Please sign in to comment.