Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2054b91

Browse files
committedFeb 10, 2024
Allow a larger amount of variance due to x86 Windows
1 parent ab6b2db commit 2054b91

File tree

1 file changed

+2
-2
lines changed
  • src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System

1 file changed

+2
-2
lines changed
 

‎src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/Math.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ public static void Sin(double value, double expectedResult, double allowedVarian
14971497

14981498
[Theory]
14991499
[InlineData( double.NegativeInfinity, double.NaN, double.NaN, 0.0, 0.0)]
1500-
[InlineData(-1e18, 0.9929693207404051, 0.11837199021871073, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // https://github.com/dotnet/runtime/issues/98204
1500+
[InlineData(-1e18, 0.9929693207404051, 0.11837199021871073, 0.0002, 0.0002)] // https://github.com/dotnet/runtime/issues/98204
15011501
[InlineData(-3.1415926535897932, -0.0, -1.0, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon * 10)] // value: -(pi)
15021502
[InlineData(-2.7182818284590452, -0.41078129050290870, -0.91173391478696510, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // value: -(e)
15031503
[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
15291529
[InlineData( 2.3025850929940457, 0.74398033695749319, -0.66820151019031295, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // value: (ln(10))
15301530
[InlineData( 2.7182818284590452, 0.41078129050290870, -0.91173391478696510, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // value: (e)
15311531
[InlineData( 3.1415926535897932, 0.0, -1.0, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon * 10)] // value: (pi)
1532-
[InlineData( 1e18, -0.9929693207404051, 0.11837199021871073, CrossPlatformMachineEpsilon, CrossPlatformMachineEpsilon)] // https://github.com/dotnet/runtime/issues/98204
1532+
[InlineData( 1e18, -0.9929693207404051, 0.11837199021871073, 0.0002, 0.0002)] // https://github.com/dotnet/runtime/issues/98204
15331533
[InlineData( double.PositiveInfinity, double.NaN, double.NaN, 0.0, 0.0)]
15341534
public static void SinCos(double value, double expectedResultSin, double expectedResultCos, double allowedVarianceSin, double allowedVarianceCos)
15351535
{

0 commit comments

Comments
 (0)
Please sign in to comment.