FAILURE MAP
← Case archive

FA-95983 / Postal address normalization / Member archive

Alternating letter-digit postal code: the canonical space is not reinserted · case 03

Codes are returned compact, so spaced and compact input normalize the same only by accident.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Strip and uppercase. A 7-character input with a space at index 3 loses the space. The result must be 6 characters alternating ASCII letter, digit, letter, digit, letter, digit. Letters D F I O Q U are forbidden everywhere; W and Z are forbidden in the first position only. Return "L9L 9L9" or None.

Why this case matters

Six-character alternating codes are typed with and without the space; rejecting or accepting the wrong letters silently drops or misroutes mail.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
compact code gets its space"K3A6B3""K3A 6B3"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 ↗