Skip to content

Commit c284e59

Browse files
authored
[ISBN Verifier] Error in tests that check if the X character is only the verification digit
PR according to [this](https://forum.exercism.org/t/isbn-verifier-error-in-tests-that-check-if-the-x-character-is-only-the-verification-digit/19639) topic.
1 parent c34fa5d commit c284e59

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

exercises/isbn-verifier/canonical-data.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,31 @@
6161
},
6262
{
6363
"uuid": "28025280-2c39-4092-9719-f3234b89c627",
64-
"description": "X is only valid as a check digit",
64+
"description": "X is only valid as a check digit - X character is substituted for 10 and multiplied",
6565
"property": "isValid",
6666
"input": {
6767
"isbn": "3-598-2X507-9"
6868
},
6969
"expected": false
7070
},
71+
{
72+
"uuid": "fdb14c99-4cf8-43c5-b06d-eb1638eff343",
73+
"description": "X is only valid as a check digit - X character is substituted for 10 and not multiplied",
74+
"property": "isValid",
75+
"input": {
76+
"isbn": "3-598-2X507-5"
77+
},
78+
"expected": false
79+
},
80+
{
81+
"uuid": "47fa54cb-507e-45d3-901a-096be447dfd9",
82+
"description": "X is only valid as a check digit - X character is ignored altogether",
83+
"property": "isValid",
84+
"input": {
85+
"isbn": "3-598-2X517-1"
86+
},
87+
"expected": false
88+
},
7189
{
7290
"uuid": "f6294e61-7e79-46b3-977b-f48789a4945b",
7391
"description": "valid isbn without separating dashes",

0 commit comments

Comments
 (0)