This commit is contained in:
parent
320af54b3d
commit
4666c1995f
14 changed files with 876 additions and 346 deletions
|
|
@ -84,6 +84,12 @@ inline std::size_t CountOccurrences(std::string_view haystack, std::string_view
|
|||
// The single-unit rates are the €15 / €25 / €55 the totals assert. The second
|
||||
// band exists so the too-heavy refusal has a real ceiling to hit:
|
||||
// 10 kg / 700 g per unit = 14 units per parcel.
|
||||
//
|
||||
// CH carries the €55 world rate because it is the export destination the shop
|
||||
// actually sells to; DE and GB keep their rows even though checkout now refuses
|
||||
// both (unregistered producer schemes) precisely BECAUSE it refuses them — a
|
||||
// destination the carrier prices and the policy declines is the case worth
|
||||
// having a fixture for, and the suites assert that the policy wins.
|
||||
inline constexpr std::string_view kShippingFixture =
|
||||
R"({"method":"e2e fixture","fetched_at":"2026-01-01T00:00:00Z","per_country":{)"
|
||||
"\n"
|
||||
|
|
@ -91,7 +97,9 @@ inline constexpr std::string_view kShippingFixture =
|
|||
"\n"
|
||||
R"("DE":[[2000,2500],[10000,4200]],)"
|
||||
"\n"
|
||||
R"("GB":[[2000,5500],[10000,7900]]}})"
|
||||
R"("GB":[[2000,5500],[10000,7900]],)"
|
||||
"\n"
|
||||
R"("CH":[[2000,5500],[10000,7900]]}})"
|
||||
"\n";
|
||||
|
||||
struct ServerOptions {
|
||||
|
|
|
|||
Loading…
Reference in a new issue