From 21f2c75c78e1796737e8d7b83283ebd5e40c4861 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 21:32:31 +0200 Subject: [PATCH] Heimdall tests: name the sums near the bound when the boundary pair is missing Co-Authored-By: Claude Sonnet 5.5 --- tests/Bifrost.Web.Tests/HeimdallCompletionTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Bifrost.Web.Tests/HeimdallCompletionTests.cs b/tests/Bifrost.Web.Tests/HeimdallCompletionTests.cs index ea2467a..cb3f71e 100644 --- a/tests/Bifrost.Web.Tests/HeimdallCompletionTests.cs +++ b/tests/Bifrost.Web.Tests/HeimdallCompletionTests.cs @@ -1355,8 +1355,11 @@ public sealed class HeimdallCompletionTests var fits = Pair(HeimdallAttemptCookie.MaxAggregateBytes); var overflows = Pair(HeimdallAttemptCookie.MaxAggregateBytes + 1); - Assert.NotNull(fits); - Assert.NotNull(overflows); + var near = string.Join(",", (from a in byLength.Values from b in byLength.Values + let sum = a.Bytes + b.Bytes + where Math.Abs(sum - HeimdallAttemptCookie.MaxAggregateBytes) <= 40 + select sum).Distinct().Order()); + Assert.True(fits is not null && overflows is not null, $"sums near the bound: {near}"); foreach (var (pair, overflow) in new[] { (fits.Value, false), (overflows.Value, true) }) {