FAILURE MAP
← Case archive

FA-72368 / Check-digit algorithms / Member archive

ISIN letters expand from one instead of ten · case 03

ISINs containing letters get the wrong computed check digit.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input a 12-character ISIN: two uppercase ASCII letters (country), nine uppercase alphanumerics, one check digit; anything else is "malformed". Letters expand to two digits (A=10 .. Z=35), then Luhn doubling starts at the rightmost digit of the expanded 11-character payload. Return [computed check digit, whether it matches].

Why this case matters

Securities settlement systems reject ISINs whose check digit does not match before routing trades.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression ["XS0K4JDSXBN1"][2, false][4, false]Failed

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 ↗