Fix tests

This commit is contained in:
James Newton-King 2021-11-10 09:02:28 +13:00
parent aa15931050
commit 0f33dc4380
No known key found for this signature in database
GPG Key ID: 0A66B2F456BF5526
2 changed files with 2 additions and 2 deletions

View File

@ -553,7 +553,7 @@ namespace Google.Protobuf
[Test]
// Skip these test cases in .NET 5 because floating point parsing supports bigger values.
// These big values won't throw an error in the test.
#if !NET5_0
#if !NETCOREAPP3_1_OR_GREATER
[TestCase("1.7977e308")]
[TestCase("-1.7977e308")]
[TestCase("1e309")]

View File

@ -201,7 +201,7 @@ namespace Google.Protobuf
[TestCase("--1")]
// Skip these test cases in .NET 5 because floating point parsing supports bigger values.
// These big values won't throw an error in the test.
#if !NET5_0
#if !NETCOREAPP3_1_OR_GREATER
[TestCase("-1.7977e308")]
[TestCase("1.7977e308")]
#endif