FA-66405 / Airline fare rule evaluation / Member archive
Seasons spanning New Year never match · case 05
Travel on 3 January is priced as LOW instead of the December-January PEAK season.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| New Year inside wrap season | "NONE" | "PEAK" | 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 ↗