FAILURE MAP
← Case archive

FA-66424 / Airline fare rule evaluation / Member archive

Month-day bounds compared as text · case 04

An October date is judged outside a September-to-November season.

Member previewVariant 4 · 3 implementations · 10 checks per implementation

Case contract

Input {'date','seasons':[[start 'M-D', end 'M-D' (unpadded allowed), weekdays string of ISO digits 1=Mon..7=Sun, code]]}. A season with start after end wraps the year end. Both ends inclusive. Return the code of the first season (list order) containing the date on an allowed weekday, else 'NONE'.

Why this case matters

Fare seasonality tables use month-day ranges that can wrap the year boundary and are further restricted by day of week.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
season end day"PEAK""HIGH_WK"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 ↗