A ISBN consists of 10 digits and hyphens. The position of the hyphens may vary. A ISBN is valid if the the following equation is true: sum(i = 1 to 10: t * digit[i]) mod 11 = 0
ISBNFixture | ||
isbn | stripped? | valid? |
3-86680-192-0 | 3866801920 | true |
3-86680-192-2 | 3866801922 | false |
3-680-08783-7 | 3680087837 | true |
193239480X | 193239480X | true |