[libc-commits] [libc] [libc] Fix signbit include test. (PR #98793)

via libc-commits libc-commits at lists.llvm.org
Sat Jul 13 20:28:49 PDT 2024


https://github.com/lntue created https://github.com/llvm/llvm-project/pull/98793

None

>From 9d769945f6fda5d4e9ef419f0ad0cdc326a4a751 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Sun, 14 Jul 2024 03:28:18 +0000
Subject: [PATCH] [libc] Fix signbit include test.

---
 libc/test/include/SignbitTest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/test/include/SignbitTest.h b/libc/test/include/SignbitTest.h
index 85d499823088c..d0686d45d3985 100644
--- a/libc/test/include/SignbitTest.h
+++ b/libc/test/include/SignbitTest.h
@@ -23,7 +23,7 @@ template <typename T> class SignbitTest : public LIBC_NAMESPACE::testing::Test {
 
   void testSpecialNumbers(SignbitFunc func) {
     EXPECT_EQ(func(1), 0);
-    EXPECT_EQ(func(-1), 1);
+    EXPECT_NE(func(-1), 0);
   }
 };
 



More information about the libc-commits mailing list