FA-66644 / Airline fare rule evaluation / Member archive
One year of validity counted as 365 days · case 04
Tickets whose validity spans 29 February expire a day early.
Case contract
Input {'issue','first_travel' (ISO or None)}. One calendar year = same month/day next year (29 Feb -> 28 Feb). Unused -> ['UNUSED', issue+1y]. First travel later than issue+1y -> ['EXPIRED_UNUSED', issue+1y] (travel on that date is still valid). Otherwise ['TRAVEL', first travel+1y].
Why this case matters
Normal ticket validity runs one year from issue until travel commences, then one year from first travel, with calendar-year and leap-day rules.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| travel commenced mid-year | ["TRAVEL", "2028-06-04"] | ["TRAVEL", "2028-06-05"] | 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 ↗