FA-66604 / Airline fare rule evaluation / Member archive
Free tickets counted against total travellers · case 04
A group of 15 receives a free ticket although only 14 would then be paying.
Case contract
Input {'pax','min_group','free_per','fare','disc_pct'}. Below min_group (total travellers) no discount and no free tickets. Otherwise one free ticket per free_per paying travellers (free = pax // (free_per+1)); each paying fare = fare*(100-disc)/100 rounded to cents, then multiplied. Return [paying, free, total r2].
Why this case matters
Group fares apply a discount once a minimum size is reached and grant tour-conductor tickets that must not themselves count as paying passengers.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fifteen travellers none free | [14, 1, 2569.84] | [15, 0, 2753.4] | 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 ↗