FAILURE MAP
← Case archive

FA-95822 / Shipping rate zone lookup / Member archive

LTL breaks: cwt charge truncated · case 02

Charges are a cent low on fractional hundredweight results.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Weight breaks 0, 500, 1000, 2000, 5000, 10000 lb with cents-per-cwt rates for the lane. Weight rounds up to a whole lb (min 1) and is rated at its break: ceil(w * rate / 100). Deficit rating: if billing any heavier break minimum at that break rate is strictly cheaper, use the cheapest such. Charge is at least min_charge. Return [charge, break index, rated weight].

Why this case matters

LTL lane rates use weight breaks with deficit weight rating.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
generated mix 48[14151, 0, 334][14152, 0, 334]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 ↗