FAILURE MAP
← Case archive

FA-95567 / Shipping rate zone lookup / Member archive

Hundredweight: charge cents truncated · case 02

Hundredweight charges come out a cent low on fractional results.

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 31[201, 11338][201, 11339]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 ↗