From 0c8466c0015eb8e4061b177e125e588b2138cc8a Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Tue, 12 Jan 2021 16:11:28 -0800 Subject: [PATCH] [libc][NFC] Use more specific comparison macros in LdExpTest.h. --- libc/test/src/math/LdExpTest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/test/src/math/LdExpTest.h b/libc/test/src/math/LdExpTest.h index b4be06b..0a910bd 100644 --- a/libc/test/src/math/LdExpTest.h +++ b/libc/test/src/math/LdExpTest.h @@ -131,11 +131,11 @@ public: // The result should not be infinity. x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0); exp = FPBits::maxExponent + 5; - ASSERT_EQ(isinf(func(x, exp)), 0); + ASSERT_FALSE(FPBits(func(x, exp)).isInf()); // But if the exp is large enough to oversome than the normalization shift, // then it should result in infinity. exp = FPBits::maxExponent + 15; - ASSERT_NE(isinf(func(x, exp)), 0); + ASSERT_FP_EQ(func(x, exp), inf); } }; -- 2.7.4