Skip to content

Commit d9b62c9

Browse files
authored
Merge pull request #1420 from bitfield/luhn/non-digit
luhn: non-digit at end is invalid
2 parents 9105a7a + 4a80663 commit d9b62c9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

exercises/luhn/canonical-data.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "luhn",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"cases": [
55
{
66
"description": "single digit strings can not be valid",
@@ -74,6 +74,14 @@
7474
},
7575
"expected": false
7676
},
77+
{
78+
"description": "valid strings with a non-digit added at the end become invalid",
79+
"property": "valid",
80+
"input": {
81+
"value": "059a"
82+
},
83+
"expected": false
84+
},
7785
{
7886
"description": "valid strings with punctuation included become invalid",
7987
"property": "valid",

0 commit comments

Comments
 (0)