FAILURE MAP
← Case archive

FA-95684 / Shipping rate zone lookup / Member archive

Contract discount: discount cents truncated · case 04

Discounts come out a cent short on half-cent results.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Cents. Weekly spend (dollars, may have cents) selects the discount: >= 5000 -> 25%, >= 2000 -> 18%, >= 500 -> 12%, else 0. Discount = list * pct / 100 rounded half up. Net is floored at the minimum charge, but never above the list rate. Return [pct, net].

Why this case matters

Contract pricing discounts list rates by volume tier subject to a minimum.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
generated mix 5[12, 4400][12, 4399]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 ↗