[libc-commits] [libc] 51b7ef9 - [libc][NFC] Fix a typo in test/src/stdfix/RoundTest.h. (#84411)

via libc-commits libc-commits at lists.llvm.org
Thu Mar 7 19:05:02 PST 2024


Author: lntue
Date: 2024-03-07T22:04:59-05:00
New Revision: 51b7ef937504ce45ef6a024aadfdee4147bffab5

URL: https://github.com/llvm/llvm-project/commit/51b7ef937504ce45ef6a024aadfdee4147bffab5
DIFF: https://github.com/llvm/llvm-project/commit/51b7ef937504ce45ef6a024aadfdee4147bffab5.diff

LOG: [libc][NFC] Fix a typo in test/src/stdfix/RoundTest.h. (#84411)

Added: 
    

Modified: 
    libc/test/src/stdfix/RoundTest.h

Removed: 
    


################################################################################
diff  --git a/libc/test/src/stdfix/RoundTest.h b/libc/test/src/stdfix/RoundTest.h
index 06343addbef20e..d3ae04db9749ba 100644
--- a/libc/test/src/stdfix/RoundTest.h
+++ b/libc/test/src/stdfix/RoundTest.h
@@ -28,7 +28,7 @@ template <typename T> class RoundTest : public LIBC_NAMESPACE::testing::Test {
 
   void testSpecialNumbers(RoundFunc func) {
     EXPECT_EQ(zero, func(zero, FXRep::FRACTION_LEN - 5));
-    EXPECT_EQ(max, func(min, 0));
+    EXPECT_EQ(min, func(min, 0));
     EXPECT_EQ(max, func(max, FXRep::FRACTION_LEN));
 
     EXPECT_EQ(one, func(half, 0));


        


More information about the libc-commits mailing list