FAILURE MAP
← Case archive

FA-66620 / Airline fare rule evaluation / Member archive

Parties below the group minimum receive conductor tickets · case 05

A 12-person party on a 20-minimum group fare gets two free tickets.

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
generous free rule small party[10, 2, 1050.0][12, 0, 1260.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 ↗