Skip to content

Commit 3930b0a

Browse files
idealhackrpottsoh
authored andcommitted
luhn: add a test case of strings with non-digits (#1246)
1 parent db3b9fe commit 3930b0a

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.1.0",
3+
"version": "1.2.0",
44
"cases": [
55
{
66
"description": "single digit strings can not be valid",
@@ -105,6 +105,14 @@
105105
"value": "091"
106106
},
107107
"expected": true
108+
},
109+
{
110+
"description": "strings with non-digits is invalid",
111+
"property": "valid",
112+
"input": {
113+
"value": ":9"
114+
},
115+
"expected": false
108116
}
109117
]
110118
}

0 commit comments

Comments
 (0)