FAILURE MAP
← Case archive

FA-96432 / Phone number formatting / Member archive

Vanity keypad translator: extra digits after the tenth are accepted · case 02

An eleven-digit number loses its last digit and is accepted.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Uppercase. Digits are kept, letters map to keypad digits (ABC2 DEF3 GHI4 JKL5 MNO6 PQRS7 TUV8 WXYZ9), spaces, hyphens, dots and parentheses are ignored and anything else returns None. At least ten symbols are needed; symbols after the tenth may only be letters (vanity overflow) and are dropped. Return the first ten digits as "DDD-DDD-DDDD".

Why this case matters

Vanity numbers printed in advertising are translated before dialing or storing; a wrong keypad table dials a stranger.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
extra digit is rejected"555-784-9947"nullFailed

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 ↗