[llvm] [nfc][llvm] Fix a typo in MathExtras.h testing (PR #89653)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 12:08:13 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Théo Degioanni (Moxinilian)

<details>
<summary>Changes</summary>

I made a small typo when writing a test for MathExtras.h, sorry!

---
Full diff: https://github.com/llvm/llvm-project/pull/89653.diff


1 Files Affected:

- (modified) llvm/unittests/Support/MathExtrasTest.cpp (+3-3) 


``````````diff
diff --git a/llvm/unittests/Support/MathExtrasTest.cpp b/llvm/unittests/Support/MathExtrasTest.cpp
index 218655851ca0d7..d09f987b9d0f15 100644
--- a/llvm/unittests/Support/MathExtrasTest.cpp
+++ b/llvm/unittests/Support/MathExtrasTest.cpp
@@ -41,9 +41,9 @@ TEST(MathExtras, onesMask) {
 TEST(MathExtras, isIntN) {
   EXPECT_TRUE(isIntN(16, 32767));
   EXPECT_FALSE(isIntN(16, 32768));
-  EXPECT_TRUE(isUIntN(0, 0));
-  EXPECT_FALSE(isUIntN(0, 1));
-  EXPECT_FALSE(isUIntN(0, -1));
+  EXPECT_TRUE(isIntN(0, 0));
+  EXPECT_FALSE(isIntN(0, 1));
+  EXPECT_FALSE(isIntN(0, -1));
 }
 
 TEST(MathExtras, isUIntN) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/89653


More information about the llvm-commits mailing list