Files
rose-ash/lib/commerce/tests/stack.sx
giles f71af498cf
Some checks are pending
Test, Build, and Deploy / test-build-deploy (push) Waiting to run
commerce: stacking precedence + best-price selection + backward query (16 tests) — Phase 2 done
stack.sx — precedence as a separate selection layer, not in the rules.
Exclusivity = unordered code pairs; valid-stackings enumerates every legal
subset of applicable promos; best-stacking deterministically picks max total
discount (stable on ties); stacking-by-totalo answers "which legal stacking
yields total D?" backward. Member vs guest falls out of applicable-promos.
Completes Phase 2. Total 99/99 across 6 suites.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 00:21:48 +00:00

2.9 KiB