FA-95644 / Shipping rate zone lookup / Member archive
Flat vs weight: fractional pound uses lower rate · case 04
A 3.2 lb parcel is priced at the 3 lb rate; sub-pound parcels wrap to the heaviest rate.
Case contract
boxes [[name, L, W, H, price]] inner dims; an item fits a flat box in any orientation and flat boxes accept up to 70 lb. Weight price = weight_rates[lb-1] with lb = ceil(weight) (min 1) when lb is within the table. Choose the cheapest option; on equal price prefer flat boxes, then name. Return [option, price] or ["NONE", 0].
Why this case matters
Shippers compare flat-rate packaging with zone weight pricing.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| generated mix 58 | ["WEIGHT", 1350] | ["WEIGHT", 1600] | 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 ↗