Skip to content

Commit 5a8d50e

Browse files
committed
Add tests
1 parent 09aee23 commit 5a8d50e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitVersion.Core.Tests/Formatting/NumericFormatterTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using GitVersion.Formatting;
1+
using GitVersion.Formatting;
22

33
namespace GitVersion.Tests.Formatting;
44

@@ -21,6 +21,9 @@ public void TryFormat_NullValue_ReturnsFalse()
2121
[TestCase("1234.5678", "f2", "1234.57")]
2222
[TestCase("1234.5678", "f0", "1235")]
2323
[TestCase("1234.5678", "g", "1234.5678")]
24+
[TestCase("1234", "d8", "00001234")]
25+
[TestCase("1234", "x8", "000004d2")]
26+
[TestCase("12", "b8", "00001100")]
2427
public void TryFormat_ValidFormats_ReturnsExpectedResult(string input, string format, string expected)
2528
{
2629
var sut = new NumericFormatter();

0 commit comments

Comments
 (0)