FA-72812 / Check-digit algorithms / Member archive
Bank-slip mod 11 cycles weights 2 to 7 · case 02
Slips longer than six digits receive the wrong verifying digit.
Case contract
Bank-slip style mod-11 verifying digit: nonempty ASCII digits (else None); weights 2,3,...,9 cycle from the rightmost digit; r = 11 - sum mod 11; results 10 and 11 are replaced by 1.
Why this case matters
Payment slip barcodes carry a general verifying digit that banks recompute on capture.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression ["0154413110088423"] | 1 | 4 | 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 ↗