From 54d200ec6051d3a6691d7eacf7405f709adc11fb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 05:37:21 +0200 Subject: [PATCH] probe x --- tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs index 545392834..73c83080c 100644 --- a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs +++ b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs @@ -152,10 +152,14 @@ public sealed class ConsumableSupplyTests : IDisposable var rig = Build(Offer.Reachable); var stocked = 0; var makers = new HashSet(); + var hist = new int[4]; int dockN = 0, crateN = 0; for (var i = 0; i < Seeds; i++) { var random = new Random(SeedOf(i)); var pack = rig.Generator(ref random).GenerateStationLoadout(); + hist[Math.Min(3, Consumables(pack).Length)]++; + dockN += (pack.DockingBayContents ?? new (int2, ItemInstance)[0][]).SelectMany(b => b).Count(e => e.item is ConsumableItem); + crateN += pack.CargoContents.SelectMany(b => b).Count(e => e.item is ConsumableItem); Assert.NotEmpty(pack.CargoContents.SelectMany(bay => bay)); // the gear stock is read from the same pack var held = Consumables(pack); if (held.Length == 0) continue; @@ -166,6 +170,7 @@ public sealed class ConsumableSupplyTests : IDisposable Assert.Contains(product, new[] { "Overdrive by Maker", "Overdrive by Ally" }); // sold by a maker on offer makers.Add(product); } + Assert.True(false, $"PROBE stocked={stocked} hist={string.Join(",", hist)} dock={dockN} crate={crateN} none={Enumerable.Range(0, 0).Count()}"); AssertWithinThreeSigma(stocked, LoadoutGenerator.StationConsumableChance, "stations stocking a consumable"); Assert.Equal(2, makers.Count); // the pick is among the products on offer, not always the first }