RynthSuite as of 2026-11-26 (internal 1db112e): release 2026.11.26.1
This commit is contained in:
parent
90e76a6561
commit
25552fa794
175 changed files with 23428 additions and 494 deletions
|
|
@ -455,6 +455,10 @@ internal static class Program
|
|||
Eq(AutoVendorPlanner.MostCarriedUnit(staleVotes), 5_000_000 / 79, "the vote alone picks the stale price");
|
||||
Eq(AutoVendorPlanner.TrueUnit(staleVotes, 50_000), 50_000, "a split-off stack's fresh unit wins");
|
||||
Eq(AutoVendorPlanner.TrueUnit(staleVotes, 0), 5_000_000 / 79, "no fresh unit: the vote");
|
||||
// R-20261125-011308-9444: a split-off stack split again keeps the old Value: no longer fresh.
|
||||
Check(AutoVendorPlanner.FreshSplitReading(42, 42), "a split's new stack, untouched: fresh");
|
||||
Check(!AutoVendorPlanner.FreshSplitReading(42, 1), "split again down to 1: stale (it read 2,100,000 a pea)");
|
||||
Check(!AutoVendorPlanner.FreshSplitReading(0, 5), "not made by a split: never fresh");
|
||||
var lastFull = AutoVendorPlanner.PlanNext(v, none, new List<SellItem> { PyPea(1, 100) }, Pack(0, free: 44));
|
||||
Eq(lastFull.Kind, PlanKind.Split, "44 free: split...");
|
||||
Eq(lastFull.SplitAmount, 21, "...21 off");
|
||||
|
|
|
|||
Loading…
Reference in a new issue