From 2054b916e606110c931423d2c48db2ed74c1b3ef Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Fri, 9 Feb 2024 16:41:21 -0800 Subject: [PATCH] Allow a larger amount of variance due to x86 Windows --- .../tests/System.Runtime.Extensions.Tests/System/Math.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/Math.cs b/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/Math.cs index 2e890e7e513e9..06b074801a146 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/Math.cs +++ b/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/Math.cs @@ -1497,7 +1497,7 @@ public static void Sin(double value, double expectedResult, double allowedVarian [Theory] [InlineData( double.NegativeInfinity, double.NaN, double.NaN, 0.0, 0.0)] - [InlineData(-1e18, 0.9929693207404051, 0.11837199021871073, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // https://github.com/dotnet/runtime/issues/98204 + [InlineData(-1e18, 0.9929693207404051, 0.11837199021871073, 0.0002, 0.0002)] // https://github.com/dotnet/runtime/issues/98204 [InlineData(-3.1415926535897932, -0.0, -1.0, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon * 10)] // value: -(pi) [InlineData(-2.7182818284590452, -0.41078129050290870, -0.91173391478696510, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // value: -(e) [InlineData(-2.3025850929940457, -0.74398033695749319, -0.66820151019031295, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // value: -(ln(10)) @@ -1529,7 +1529,7 @@ public static void Sin(double value, double expectedResult, double allowedVarian [InlineData( 2.3025850929940457, 0.74398033695749319, -0.66820151019031295, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // value: (ln(10)) [InlineData( 2.7182818284590452, 0.41078129050290870, -0.91173391478696510, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // value: (e) [InlineData( 3.1415926535897932, 0.0, -1.0, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon * 10)] // value: (pi) - [InlineData( 1e18, -0.9929693207404051, 0.11837199021871073, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // https://github.com/dotnet/runtime/issues/98204 + [InlineData( 1e18, -0.9929693207404051, 0.11837199021871073, 0.0002, 0.0002)] // https://github.com/dotnet/runtime/issues/98204 [InlineData( double.PositiveInfinity, double.NaN, double.NaN, 0.0, 0.0)] public static void SinCos(double value, double expectedResultSin, double expectedResultCos, double allowedVarianceSin, double allowedVarianceCos) {