FA-66617 / Airline fare rule evaluation / Member archive
Parties below the group minimum receive conductor tickets · case 02
A 12-person party on a 20-minimum group fare gets two free tickets.
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 |
|---|---|---|---|
| generous free rule small party | [10, 2, 1020.0] | [12, 0, 1224.0] | 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 ↗