File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
exercises/practice/isbn-verifier Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ description = "invalid character in isbn is not treated as zero"
3030[28025280-2c39-4092-9719-f3234b89c627 ]
3131description = " X is only valid as a check digit"
3232
33+ [8005b57f-f194-44ee-88d2-a77ac4142591 ]
34+ description = " only one check digit is allowed"
35+
36+ [fdb14c99-4cf8-43c5-b06d-eb1638eff343 ]
37+ description = " X is not substituted by the value 10"
38+
3339[f6294e61-7e79-46b3-977b-f48789a4945b ]
3440description = " valid isbn without separating dashes"
3541
Original file line number Diff line number Diff line change @@ -68,6 +68,20 @@ public void xIsOnlyValidAsACheckDigit() {
6868 assertThat (isbnVerifier .isValid ("3-598-2X507-9" )).isFalse ();
6969 }
7070
71+ @ Disabled ("Remove to run test" )
72+ @ Test
73+ @ DisplayName ("only one check digit is allowed" )
74+ public void onlyOneCheckDigitIsAllowed () {
75+ assertThat (isbnVerifier .isValid ("3-598-21508-96" )).isFalse ();
76+ }
77+
78+ @ Disabled ("Remove to run test" )
79+ @ Test
80+ @ DisplayName ("X is not substituted by the value 10" )
81+ public void xIsNotSubstitutedByTheValue10 () {
82+ assertThat (isbnVerifier .isValid ("3-598-2X507-5" )).isFalse ();
83+ }
84+
7185 @ Disabled ("Remove to run test" )
7286 @ Test
7387 @ DisplayName ("valid isbn without separating dashes" )
You can’t perform that action at this time.
0 commit comments