FA-95504 / Shipping rate zone lookup / Member archive
Rate card: oldest applicable card chosen · case 04
Superseded rate cards stay in use after a new card takes effect.
Case contract
cards [[card_id, effective_from, expires or None, version]] with dates "Y-M-D" that may lack zero padding. A card applies when effective_from <= ship date < expires. Choose the latest effective_from, then highest version, then smallest card_id. None -> "NO_CARD".
Why this case matters
Carriers publish dated rate cards; each shipment must use the card in force on its ship date.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| generated mix 61 | "R2" | "R0" | 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 ↗