Say only what a tail coupler does: end signals or none

The simulator reads the last vehicle's coupler for one thing, whether to put
up the end signals. It does not couple the train to anything behind it, as
the tooltip and a comment claimed.
This commit is contained in:
maj00r
2026-10-04 18:57:58 +02:00
parent 53fe9aa48c
commit 2e7e967279
8 changed files with 13 additions and 13 deletions

View File

@@ -18,8 +18,8 @@ public class CouplerLookTests
[Theory]
[InlineData("0", CouplerState.EndSignals)]
[InlineData("0.BP", CouplerState.EndSignals)]
[InlineData("3", CouplerState.CoupledBehind)]
[InlineData("-7", CouplerState.CoupledBehind)]
[InlineData("3", CouplerState.NoEndSignals)]
[InlineData("-7", CouplerState.NoEndSignals)]
public void The_back_of_the_train_gets_end_signals_only_at_0(string code, CouplerState expected) =>
Assert.Equal(expected, CouplerLook.StateOf(Coupling.Parse(code), trailing: true));
}