Skip to content

Commit a852da5

Browse files
authored
Sync isbn-verifier tests (#397)
[no important files changed]
1 parent a68877d commit a852da5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

exercises/practice/isbn-verifier/.meta/tests.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ description = "invalid character in isbn is not treated as zero"
3030
[28025280-2c39-4092-9719-f3234b89c627]
3131
description = "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]
3440
description = "valid isbn without separating dashes"
3541

exercises/practice/isbn-verifier/isbn-verifier.spec.coffee

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ describe 'ISBN Verifier', ->
2323
xit 'X is only valid as a check digit', ->
2424
expect(IsbnVerifier.isValid '3-598-2X507-9').toEqual false
2525

26+
xit 'only one check digit is allowed', ->
27+
expect(IsbnVerifier.isValid '3-598-21508-96').toEqual false
28+
29+
xit 'X is not substituted by the value 10', ->
30+
expect(IsbnVerifier.isValid '3-598-2X507-5').toEqual false
31+
2632
xit 'valid ISBN without separating dashes', ->
2733
expect(IsbnVerifier.isValid '3598215088').toEqual true
2834

0 commit comments

Comments
 (0)