Black box: the test of an older recording's light pattern checks the lights were judged

This commit is contained in:
maj00r
2026-11-11 01:09:46 +01:00
parent de3f088ba8
commit 88adf5ee0f

View File

@@ -131,7 +131,9 @@ public class HeadCodeTests
var f = new BlackBoxFile().Info();
for (double t = 0; t < 30; t += 0.5)
f.Cab(t, 1, 1000 + t * 10, 40, lightsHead: Pc1, lightsTail: 0x40, movement: 1, hintTail: 0x22);
Assert.Empty(BlackBoxReader.Read(f.End(30).Stream()).Summarize().LightsFaults);
var summary = BlackBoxReader.Read(f.End(30).Stream()).Summarize();
Assert.True(summary.LightsJudgedSeconds > 25);
Assert.Empty(summary.LightsFaults);
}
[Fact]