]> granicus.if.org Git - llvm/commitdiff
[APInt] Fix test names in unittest to match functions being tested. NFC
authorCraig Topper <craig.topper@gmail.com>
Tue, 7 Mar 2017 03:16:37 +0000 (03:16 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 7 Mar 2017 03:16:37 +0000 (03:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297115 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ADT/APIntTest.cpp

index b8cbf16f5a6489ce31557fc3f1046d40afa27f02..ea1eb54bfc9ab707d0f81bad94b430f4a0c6f2f8 100644 (file)
@@ -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());