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

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


Author: lntue
Date: 2024-07-13T23:39:53-04:00
New Revision: 57ae6183757ec26082903e2fc6904c0cfe53b34a

URL: https://github.com/llvm/llvm-project/commit/57ae6183757ec26082903e2fc6904c0cfe53b34a
DIFF: https://github.com/llvm/llvm-project/commit/57ae6183757ec26082903e2fc6904c0cfe53b34a.diff

LOG: [libc] Fix signbit include test. (#98793)

Added: 
    

Modified: 
    libc/test/include/SignbitTest.h

Removed: 
    


################################################################################
diff  --git a/libc/test/include/SignbitTest.h b/libc/test/include/SignbitTest.h
index 85d499823088..d0686d45d398 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