We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43456c4 commit 0a358cdCopy full SHA for 0a358cd
1 file changed
tests/NuGetGallery.Facts/Extensions/NumberExtensionsFacts.cs
@@ -49,7 +49,12 @@ public class TheToKiloFormatMethod
49
[InlineData(999_000, "999K")]
50
[InlineData(999_999, "999K")]
51
[InlineData(1_000_000, "1.00M")]
52
-
+ [InlineData(1_999_000, "1.99M")]
53
+ [InlineData(99_990_000, "99.9M")]
54
+ [InlineData(100_990_000, "100M")]
55
+ [InlineData(999_990_000, "999M")]
56
+ [InlineData(1_000_000_000, "1.00G")]
57
+ [InlineData(1_999_000_000, "1.99G")]
58
public void FormatsUsingExpectedUnit(int number, string expected)
59
{
60
var actual = NumberExtensions.ToKiloFormat(number);
0 commit comments