FA-96239 / Postal address normalization / Member archive
Country address template renderer: empty lines are printed · case 04
A label without a name starts with a blank line.
Case contract
Input fields name, street, city, region, postal, country (destination) and origin. Toy templates: AA "{city} {region} {postal}", BB "{postal} {city}", CC city and postal on separate lines with the city uppercased; unknown destinations use AA. Each rendered line is whitespace-collapsed and empty lines are dropped. When origin differs from destination the destination name (or its code when unknown) is appended.
Why this case matters
Cross-border labels must follow the destination order; misplaced or doubled components delay or return shipments.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| empty name line dropped | ["", "7 Fake Rd", "Quillby ZZ 14345"] | ["7 Fake Rd", "Quillby ZZ 14345"] | 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 ↗