FAILURE MAP
← Case archive

FA-72832 / Check-digit algorithms / Member archive

ESR applies the carry table before adding the digit · case 02

Reference check digits disagree with the bank.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Swiss ESR/QR reference check digit (modulo 10 recursive): spaces ignored, nonempty ASCII digits required (else None). carry starts at 0 and for each digit becomes T[(carry + digit) mod 10] with T = 0,9,4,6,8,2,7,1,3,5; the check digit is (10 - carry) mod 10.

Why this case matters

Payment slips carry a recursive mod-10 reference that billing systems regenerate for reconciliation.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression ["1620895357382317345"]74Failed

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 ↗