FA-66688 / Airline fare rule evaluation / Member archive
Outbound-only surcharge rule charged on return · case 03
Fares with an OUTBOUND rule add a second weekend surcharge on the return.
Case contract
Input {'outbound','inbound' (ISO or None),'weekend_days' ISO digits,'surcharge','rt_rule' EACH|OUTBOUND,'pax'}. Each direction is surcharged by its own departure weekday; with OUTBOUND only the outbound direction is assessed. The per-passenger total is multiplied by pax.
Why this case matters
Day-of-week surcharges are assessed per fare component on its own travel date, and the rule may restrict assessment to the outbound direction.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| outbound-only rule | 180 | 90 | 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 ↗