FAILURE MAP
← Case archive

FA-66414 / Airline fare rule evaluation / Member archive

Later overlapping season overrides the first match · case 04

A date covered by both a December promotion and the peak season gets the later-listed code.

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
overlapping seasons first wins"PEAK""DEC"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 ↗