From 1491bed18dd822888775fdc1d0cf8b34219571a8 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 19 Nov 2026 22:06:34 +0100 Subject: [PATCH] Pin the shake's upper bound, the golden table's line endings, and a clean BDS tree for regeneration Soul lows on cut-nervous-layers.s2: shake-test-has-no-upper-bound (0.06 and 0.15 now fail at 7.7 and 14 cm), golden-tsv-eol-unpinned, golden-generator-trusts-head. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 1 + tests/Lodur.Tests/ConnectedPainBoxTests.cs | 1 + tools/pain-box-golden/generate.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index dfdb8b7..78ef940 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ *.sh text eol=lf +tests/Lodur.Core.Tests/pain-box-golden.tsv text eol=lf diff --git a/tests/Lodur.Tests/ConnectedPainBoxTests.cs b/tests/Lodur.Tests/ConnectedPainBoxTests.cs index efe1255..f0397e8 100644 --- a/tests/Lodur.Tests/ConnectedPainBoxTests.cs +++ b/tests/Lodur.Tests/ConnectedPainBoxTests.cs @@ -179,6 +179,7 @@ public sealed class ConnectedPainBoxTests for (var s = 8; s <= 13; s++) { Assert.True(VerticalPeakToPeak(shaking, s) > 0.03f, $"shipped shake only {VerticalPeakToPeak(shaking, s)} m peak to peak in second {s}"); + Assert.True(VerticalPeakToPeak(shaking, s) < 0.07f, $"shipped shake is {VerticalPeakToPeak(shaking, s)} m peak to peak in second {s}, more than a strain tremor"); Assert.True(VerticalPeakToPeak(still, s) < 0.015f, $"no shake still moved {VerticalPeakToPeak(still, s)} m in second {s}"); } } diff --git a/tools/pain-box-golden/generate.sh b/tools/pain-box-golden/generate.sh index 4bf2ba1..14b1ad6 100644 --- a/tools/pain-box-golden/generate.sh +++ b/tools/pain-box-golden/generate.sh @@ -6,5 +6,6 @@ bds="${1:?path to a BadDaySimulator checkout at 9f59764}" want=9f597647a608a6c6e44473cc9f1399983de14616 have="$(git -C "$bds" rev-parse HEAD)" [ "$have" = "$want" ] || { echo "BadDaySimulator is at $have, need $want" >&2; exit 1; } +[ -z "$(git -C "$bds" status --porcelain -- src)" ] || { echo "BadDaySimulator has local changes under src/; the table must come from $want as committed" >&2; exit 1; } here="$(cd "$(dirname "$0")" && pwd)" dotnet run --project "$here/PainBoxGolden.csproj" -p:BdsRoot="$(cd "$bds" && pwd -W 2>/dev/null || pwd)" -- "$here/../../tests/Lodur.Core.Tests/pain-box-golden.tsv"