I just wanna say that
“In case 10 being the value needed to add to the sum, we use X as the check digit instead of 10”
did not help me to understand what the requirement was actually asking me to do. Also, i was under the impression the x was case-sensitive. If possible, please fix some of the wording to allure to this in a more easily understood phrasing, or perhaps standardize the test cases.
Thanks.
An extra test case in the Example and a little more wordings were added to the statement - to further clarify the ISBN structure.
Hi everybody,
New for a few months, I tried it this morning.
All test cases are ok but not validator…
I think I checked all the helps given here, but it is still not working : validator 3 is not ok.
Could some one help me please ?
Thanks
Try this as a Custom Test Case:
21
9781118336922
0880221577
0070667608
9781305109919
9781305273764
201183991
0023609516
9783319175744
9783319515168
8131760529
812X335961
0672301997
ignore_meX
0830645918
0140088911
9780471142737
080442957X
097522980X
9781482587630
9781406891065
1544777434
Expected output:
3 invalid:
201183991
812X335961
ignore_meX
Thanks Yatech !
It helps !
It would be really interesting to make it the fifth test !
Thank you for this Test Case, my code works now. Before, it crashed here - ignore_meX. I have fixed it in ISBN-13 too. But when I submit my code it fails at Validator 2(Short) and I don’t know why. Can everyone help me?
If your program passes these several rules, it should be correct:
- correct total length
- 0…9 for all digits at the front
- for isbn10, 0…9|X for the last digit
- for isbn13, 0…9 for the last digit
- correct calculated result in the check-digit
Еverything seems to be fine with my program… What is the test case at Validator 2?