From be4e5b13c4d431a17bc8d1d67be91cf42c6e8a8f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 7 Mar 2017 03:16:37 +0000 Subject: [PATCH] [APInt] Fix test names in unittest to match functions being tested. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297115 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ADT/APIntTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index b8cbf16f5a6..ea1eb54bfc9 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -1556,7 +1556,7 @@ TEST(APIntTest, getLowBitsSet) { EXPECT_EQ(64u, i128lo64.countPopulation()); } -TEST(APIntTest, getHighBitsSet) { +TEST(APIntTest, getBitsSet) { APInt i64hi1lo1 = APInt::getBitsSet(64, 63, 1); EXPECT_EQ(1u, i64hi1lo1.countLeadingOnes()); EXPECT_EQ(0u, i64hi1lo1.countLeadingZeros()); @@ -1574,7 +1574,7 @@ TEST(APIntTest, getHighBitsSet) { EXPECT_EQ(2u, i127hi1lo1.countPopulation()); } -TEST(APIntTest, getBitsSet) { +TEST(APIntTest, getHighBitsSet) { APInt i64hi32 = APInt::getHighBitsSet(64, 32); EXPECT_EQ(32u, i64hi32.countLeadingOnes()); EXPECT_EQ(0u, i64hi32.countLeadingZeros()); -- 2.50.1