FAILURE MAP
← Case archive

FA-66615 / Airline fare rule evaluation / Member archive

Group discount rounded only on the total · case 05

The group total differs by a few cents from the per-passenger fares printed on each ticket.

Member previewVariant 5 · 3 implementations · 10 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
exactly minimum group[10, 0, 2074.92][10, 0, 2074.9]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 ↗