FAILURE MAP
← Case archive

FA-96345 / Phone number formatting / Member archive

Ten-digit display formatter: any eleventh leading digit is stripped · case 05

"2" followed by a valid ten-digit number is accepted with the 2 discarded.

Member previewVariant 5 · 3 implementations · 12 checks per implementation

Case contract

Strip the input. Only digits, spaces, parentheses, hyphens, dots and plus are allowed. If the input starts with "+" the digits must start with country digit 1. Eleven digits starting with 1 lose that 1. Exactly ten digits must remain: area (3), exchange (3), line (4). Neither the area nor the exchange may start with 0 or 1 or end in "11". Return "(AAA) EEE-LLLL" or None.

Why this case matters

Ten-digit display formatting is applied to every stored number; accepting impossible numbers or rejecting valid punctuation corrupts contact data.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
eleven digits not starting with one"(706) 555-0159"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 ↗