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

Théo Degioanni via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 12:07:39 PDT 2024


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

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

>From 2c3e3aebcfa53f1d4f7d2b58950e3622a93ac220 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20Degioanni?=
 <theo.degioanni.llvm.deluge062 at simplelogin.fr>
Date: Mon, 22 Apr 2024 21:05:51 +0200
Subject: [PATCH] fix typo in math extras test

---
 llvm/unittests/Support/MathExtrasTest.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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