From cc07d5251144e12cc089748ec66af0423ba57ad1 Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Wed, 30 Dec 2020 12:38:23 -0800 Subject: [PATCH] [libc][NFC] Use ASSERT_FP_EQ to compare nan values in tests. This change "fixes" one of the uses that was missed in 0524da67b448dcce6569fae0f54c10f208c2dc56. --- libc/test/src/math/RemQuoTest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/test/src/math/RemQuoTest.h b/libc/test/src/math/RemQuoTest.h index 66f2f09..1e00ee1 100644 --- a/libc/test/src/math/RemQuoTest.h +++ b/libc/test/src/math/RemQuoTest.h @@ -123,7 +123,7 @@ public: // In normal range on x86 platforms, the long double implicit 1 bit can be // zero making the numbers NaN. Hence we test for them separately. if (isnan(x) || isnan(y)) { - ASSERT_NE(isnan(result.f), 0); + ASSERT_FP_EQ(result.f, nan); continue; } -- 2.7.4