Skip to content

Commit 32cf607

Browse files
author
Joel W Kall
committed
updated float and double tests to test for a floating point number
1 parent 3eb25f5 commit 32cf607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.OpenApi.Tests/Writers/OpenApiWriterAnyExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void WriteOpenApiLongAsJsonWorks(long input)
5656

5757
[Theory]
5858
[InlineData(float.MinValue)]
59-
[InlineData(42)]
59+
[InlineData(42.42)]
6060
[InlineData(float.MaxValue)]
6161
public void WriteOpenApiFloatAsJsonWorks(float input)
6262
{
@@ -71,7 +71,7 @@ public void WriteOpenApiFloatAsJsonWorks(float input)
7171

7272
[Theory]
7373
[InlineData(double.MinValue)]
74-
[InlineData(42)]
74+
[InlineData(42.42)]
7575
[InlineData(double.MaxValue)]
7676
public void WriteOpenApiDoubleAsJsonWorks(double input)
7777
{

0 commit comments

Comments
 (0)