FAILURE MAP
← Case archive

FA-95547 / Shipping rate zone lookup / Member archive

Hundredweight: weight rounded at shipment level · case 02

Multi-piece shipments are under-billed because fractional pounds are pooled before rounding.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

pieces lb; each piece rounds up to a whole lb and the shipment total is their sum. Qualifies when there are at least 2 pieces, total >= 200 lb and average piece weight >= 10 lb (total >= 10*n); otherwise ["PARCEL", total]. Charge = ceil(total * cents per cwt / 100) for zone (rates list zones 2-8), at least min_piece * pieces. Return [total, charge].

Why this case matters

Hundredweight programs price qualifying multi-piece shipments by aggregate weight.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
generated mix 9["PARCEL", 39]["PARCEL", 40]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 ↗