Skip to content

Conversation

Moxinilian
Copy link
Member

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

@llvmbot
Copy link
Member

llvmbot commented Apr 22, 2024

@llvm/pr-subscribers-llvm-support

Author: Théo Degioanni (Moxinilian)

Changes

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 --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) {

@Moxinilian Moxinilian merged commit 7c58546 into llvm:main Apr 22, 2024
@Moxinilian Moxinilian deleted the fix-fix-i0 branch April 22, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants