Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 22, 2024

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
5 of 6 checks passed
@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