FA-96245 / Postal address normalization / Member archive
Country address template renderer: the country line is printed on domestic mail · case 05
Domestic AA labels end with "AALANDIA".
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 |
|---|---|---|---|
| domestic three-part last line | ["Alex Fiction", "8 Fake Rd", "Spraxham ZZ 15345", "AALANDIA"] | ["Alex Fiction", "8 Fake Rd", "Spraxham ZZ 15345"] | 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 ↗