FAILURE MAP
← Case archive

FA-96808 / Phone number formatting / Member archive

Caller ID display and callback string: home-country numbers are called back internationally · case 03

A caller with +42 is called back via "00..." instead of the trunk form.

Member previewVariant 3 · 3 implementations · 11 checks per implementation

Case contract

Home country: trunk 0, code 42, exit 00, default area 55. Restricted -> ["Private", None]; unavailable -> ["Unavailable", None]; no digits -> ["Unknown", None]. For type "unknown": a stripped leading "+" means international, else a leading exit prefix is removed and means international, else a leading trunk is removed and means national, else subscriber. International: display "+digits"; callback is trunk + national part for the home code, otherwise exit + digits. National: trunk + digits for both. Subscriber: display digits, callback trunk + area + digits. Return [display, callback].

Why this case matters

Caller ID is shown on handsets and used for one-touch callback; a wrong classification displays a foreign number as local and calls back the wrong party.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
own-country international number["+42555550334", "0042555550334"]["+42555550334", "0555550334"]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 ↗