add handing ±∞ to PerfGraphWidget.SixCharacterFormatFloat()

This commit is contained in:
atlimit8
2026-02-07 14:27:10 -06:00
committed by Gustas Kažukauskas
parent 74c4bcc072
commit 096ad0c413
2 changed files with 14 additions and 1 deletions

View File

@@ -34,6 +34,13 @@ namespace OpenRA.Test
AssertThat(double.NaN, "NaN ");
}
[TestCase(TestName = "Infinities are reported with 2 padding spaces after.")]
public void Infinity()
{
AssertThat(double.PositiveInfinity, "+Inf ");
AssertThat(double.NegativeInfinity, "-Inf ");
}
[TestCase(TestName = "Negative numbers are discarded as \"<0\" with 4 padding spaces after.")]
public void Negative()
{