Skip to content

Commit fc7ad52

Browse files
eklatzerEric Klatzerpetertseng
authored
luhn: test-case covering the usage of %5==0 (#2056)
* luhn: test-case covering the usage of %5==0 instead of %10==0 (Closes #2054) * Fixed typo Co-authored-by: Peter Tseng <[email protected]> Co-authored-by: Eric Klatzer <[email protected]> Co-authored-by: Peter Tseng <[email protected]>
1 parent 55b098b commit fc7ad52

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

exercises/luhn/canonical-data.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@
7373
},
7474
"expected": false
7575
},
76+
{
77+
"uuid": "7e7c9fc1-d994-457c-811e-d390d52fba5e",
78+
"description": "invalid long number with a remainder divisible by 5",
79+
"property": "valid",
80+
"input": {
81+
"value": "1 2345 6789 1234 5678 9013"
82+
},
83+
"expected": false
84+
},
7685
{
7786
"uuid": "ad2a0c5f-84ed-4e5b-95da-6011d6f4f0aa",
7887
"description": "valid number with an even number of digits",

0 commit comments

Comments
 (0)