FA-96149 / Postal address normalization / Member archive
Delivery point check digit: the first two house digits are used · case 04
House 123 gets delivery point 12 instead of 23.
Case contract
Input [zip5, plus4, primary]. The delivery point is the last two of the leading digits of the primary number, zero-padded to two, or "99" when there are none. With a plus-four the digit string is zip5 + plus4 + delivery point, otherwise zip5 alone. Append the check digit (10 - digit sum mod 10) mod 10.
Why this case matters
A wrong delivery point or check digit sends machine-sorted mail to the wrong door or rejects it.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| three-digit house number | "456446789124" | "456446789232" | 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 ↗