FAILURE MAP
← Case archive

FA-66735 / Airline fare rule evaluation / Member archive

Any letter after the RBD taken as a season · case 05

KW3NR decodes season W and loses the weekend day code.

Member previewVariant 5 · 3 implementations · 12 checks per implementation

Case contract

Input: a fare basis string. Grammar: RBD letter A-Z (ASCII uppercase, else 'ERR_BASIS'), optional season H|L, optional day code W (WEEKEND) | X (WEEKDAY), optional advance purchase digits of any length (default 0), then two-letter tokens from CH, IN, NR (otherwise or odd length -> 'ERR_TOKEN'). Return {'rbd','season','days','ap','flags'}.

Why this case matters

Fare basis codes pack booking class, season, day-of-week application, advance purchase and passenger/penalty indicators into a positional code.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
weekend without season{"ap": 7, "days": "ANY", "flags": ["NR"], "rbd": "K", "season": "W"}{"ap": 7, "days": "WEEKEND", "flags": ["NR"], "rbd": "K", "season": null}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 ↗