Jump to content

Template:SBN/testcases

From Wikipedia, the free encyclopedia

ISBN 10

[edit]

fails

invalid character
{{SBN|356–02201–3}}

{{SBN}}

SBN 356–02201–3 Parameter error in {{SBN}}: invalid character

{{SBN/sandbox}}

SBN 356–02201–3 Parameter error in {{SBN}}: invalid character

length (too many characters)
{{SBN|3560220133}}

{{SBN}}

SBN 3560220133 Parameter error in {{SBN}}: length

{{SBN/sandbox}}

SBN 3560220133 Parameter error in {{SBN}}: length

length (too few characters)
{{SBN|35602201}}

{{SBN}}

SBN 35602201 Parameter error in {{SBN}}: length

{{SBN/sandbox}}

SBN 35602201 Parameter error in {{SBN}}: length

invalid form
{{SBN|3451336X5}}

{{SBN}}

SBN 3451336X5 Parameter error in {{SBN}}: invalid form

{{SBN/sandbox}}

SBN 3451336X5 Parameter error in {{SBN}}: invalid form

checksum
{{SBN|356022014}}

{{SBN}}

SBN 356022014 Parameter error in {{SBN}}: checksum

{{SBN/sandbox}}

SBN 356022014 Parameter error in {{SBN}}: checksum

passes

no separators; all digits
{{SBN|356022013}}

{{SBN}}

SBN 356022013

{{SBN/sandbox}}

SBN 356022013

no separators; digits + 'X'
{{SBN|34513365X}}

{{SBN}}

SBN 34513365X

{{SBN/sandbox}}

SBN 34513365X

hyphen separator; all digits
{{SBN|356-02201-3}}

{{SBN}}

SBN 356-02201-3

{{SBN/sandbox}}

SBN 356-02201-3

hyphen separator; digits + 'X'
{{SBN|345-13365-X}}

{{SBN}}

SBN 345-13365-X

{{SBN/sandbox}}

SBN 345-13365-X

space separator; all digits
{{SBN|356 02201 3}}

{{SBN}}

SBN 356 02201 3

{{SBN/sandbox}}

SBN 356 02201 3

space separator; digits + 'X'
{{SBN|345 13365 X}}

{{SBN}}

SBN 345 13365 X

{{SBN/sandbox}}

SBN 345 13365 X