FAILURE MAP
← Case archive

FA-96152 / Postal address normalization / Member archive

Delivery point check digit: single-digit delivery points are not padded · case 02

House 7 contributes one digit, shortening the code.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

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 fixture

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

Boundary fixtureActualExpectedOutcome
one-digit house number is padded"23442678978""234426789078"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 ↗