FAILURE MAP
← Case archive

FA-66455 / Airline fare rule evaluation / Member archive

Higher-of penalty charges the lower amount · case 05

Cheap tickets are charged a tiny percentage fee instead of the minimum flat fee.

Member previewVariant 5 · 3 implementations · 10 checks per implementation

Case contract

Input {'paid','new_fare','fee','fee_pct','fee_rule' FLAT|HIGHER,'residual' CREDIT|FORFEIT,'waiver_h','hours_since_ticket'}. Fee waived when hours_since_ticket <= waiver_h; FLAT fee = fee; HIGHER = max(fee, fee_pct% of the original paid fare). Collect = max(0, new-paid) + fee; residual credit = max(0, paid-new) only when residual is CREDIT (the fee is never netted against credit). Return [collect, credit] rounded 2.

Why this case matters

Voluntary change pricing combines a fare difference, a penalty with a higher-of rule, a free-change window and residual value handling.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
upgrade HIGHER rule[280.0, 0.0][295.0, 0.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 ↗