[llvm] 7c58546 - [nfc][llvm] Fix a typo in MathExtras.h testing (#89653)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 13:04:00 PDT 2024
Author: Théo Degioanni
Date: 2024-04-22T22:03:56+02:00
New Revision: 7c5854673391940d578c591c727614bf50b78301
URL: https://github.com/llvm/llvm-project/commit/7c5854673391940d578c591c727614bf50b78301
DIFF: https://github.com/llvm/llvm-project/commit/7c5854673391940d578c591c727614bf50b78301.diff
LOG: [nfc][llvm] Fix a typo in MathExtras.h testing (#89653)
I made a small typo when writing a test for MathExtras.h, sorry!
Added:
Modified:
llvm/unittests/Support/MathExtrasTest.cpp
Removed:
################################################################################
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) {
More information about the llvm-commits
mailing list