Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ms that the percentage sign right after the number with no space inbetween is common :)

Have a look at http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.percentpositivepattern.aspx

It probably depends on culture, the default (invariant) beeing n %
  • Loading branch information
Euynac committed Jan 10, 2025
1 parent 40f3d8d commit 1c193ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MoLibrary.GachaPool.Tests/CardDrawStatisticianTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void GetReport_TableString_ShouldFormatCorrectly()
Assert.That(tableString, Does.Contain("sum of all probability:"));
Assert.That(tableString, Does.Contain($"total drawn times: {drawCount}"));
Assert.That(tableString, Does.Contain(targetCard.GetCardName()));
Assert.That(tableString, Does.Contain("100.0000%")); // Since we only drew one card
Assert.That(tableString, Does.Contain("100.0000")); // Since we only drew one card
Assert.That(tableString, Does.Contain(drawCount.ToString()));

// Verify table format
Expand Down
2 changes: 1 addition & 1 deletion MoLibrary.GachaPool.Tests/CardsPoolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ public void GetPoolProbabilityInfo_ShouldReturnFormattedString()
// Assert
Assert.That(info, Is.Not.Empty);
Assert.That(info, Does.Contain(card.GetCardName()));
Assert.That(info, Does.Contain("100.0000%"));
Assert.That(info, Does.Contain("100.0000"));
}
}

0 comments on commit 1c193ae

Please sign in to comment.