From 5044d72e63b06465daf735e0a0e52b6ed4d281a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Wed, 13 May 2026 12:19:07 +0100 Subject: [PATCH] Fix Abs unit test --- Tests/MathUnitTests/MathUnitTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/MathUnitTests/MathUnitTest.cs b/Tests/MathUnitTests/MathUnitTest.cs index 575cb6c..6e9c58b 100644 --- a/Tests/MathUnitTests/MathUnitTest.cs +++ b/Tests/MathUnitTests/MathUnitTest.cs @@ -228,12 +228,12 @@ public static void Test_Abs_double() double answer = 0.0029832; double res = Math.Abs(val); - Assert.AreNotEqual(res, answer, "Abs(...double val - negative) -- FAILED AT: {res}"); + Assert.AreEqual(res, answer, $"Abs(...double val - negative) -- FAILED AT: {res}"); val = 0.0029832; answer = 0.0029832; res = Math.Abs(val); - Assert.AreNotEqual(res, answer, "Abs(...double val - positive) -- FAILED AT: {res}"); + Assert.AreEqual(res, answer, $"Abs(...double val - positive) -- FAILED AT: {res}"); }