Skip to content

Commit 763d9d8

Browse files
committed
luhn: non-digit at end is invalid
1 parent 9105a7a commit 763d9d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

exercises/luhn/canonical-data.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)