FAILURE MAP
← Case archive

FA-72448 / Check-digit algorithms / Member archive

ISBN-13 conversion accepts an invalid ISBN-10 · case 03

Mistyped ISBN-10 values are converted into valid-looking ISBN-13 numbers.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Convert a hyphenated or plain ISBN-10 to ISBN-13. The input must be a valid ISBN-10 (mod 11, X allowed as the final character) or None is returned. The result is "978" + the nine ISBN-10 payload digits + a freshly computed EAN-13 check digit (weights 1,3 alternating from the left).

Why this case matters

Library and retail systems migrate legacy ISBN-10 records to 13-digit EAN identifiers.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression ["0306406153"]"9780306406157"nullFailed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗