We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7077c4e commit 587a15fCopy full SHA for 587a15f
1 file changed
tests/NuGetGallery.Facts/Extensions/NumberExtensionsFacts.cs
@@ -65,6 +65,7 @@ public class TheToKiloFormatMethod
65
[InlineData(999_990_000, "1.0B")]
66
[InlineData(1_000_000_000, "1.0B")]
67
[InlineData(1_999_000_000, "2.0B")]
68
+ [InlineData(2_147_483_647, "2.1B")]
69
[InlineData(-1, "-1")]
70
[InlineData(-999, "-999")]
71
[InlineData(-1000, "-1.0K")]
@@ -97,6 +98,7 @@ public class TheToKiloFormatMethod
97
98
[InlineData(-999_990_000, "-1.0B")]
99
[InlineData(-1_000_000_000, "-1.0B")]
100
[InlineData(-1_999_000_000, "-2.0B")]
101
+ [InlineData(-2_147_483_648, "-2.1B")]
102
public void FormatsUsingExpectedUnit(int number, string expected)
103
{
104
var actual = NumberExtensions.ToKiloFormat(number);
0 commit comments