From fda5bde949d736307efae5cd132f9fd4532f5224 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Tue, 17 Sep 2024 13:08:14 -0400 Subject: [PATCH] Revert addition to Helpers.IsEqualWithTolerance --- src/libraries/System.Numerics.Tensors/tests/Helpers.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libraries/System.Numerics.Tensors/tests/Helpers.cs b/src/libraries/System.Numerics.Tensors/tests/Helpers.cs index d0b997fef1ca5..4ea2988e6f47a 100644 --- a/src/libraries/System.Numerics.Tensors/tests/Helpers.cs +++ b/src/libraries/System.Numerics.Tensors/tests/Helpers.cs @@ -39,11 +39,6 @@ public static bool IsEqualWithTolerance(T expected, T actual, T? tolerance = return false; } - if (T.IsNegativeInfinity(expected) != T.IsNegativeInfinity(actual)) - { - return false; - } - tolerance = tolerance ?? DefaultTolerance.Value; T diff = T.Abs(expected - actual); return !(diff > tolerance && diff > T.Max(T.Abs(expected), T.Abs(actual)) * tolerance);