[llvm] r297115 - [APInt] Fix test names in unittest to match functions being tested. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 19:16:37 PST 2017


Author: ctopper
Date: Mon Mar  6 21:16:37 2017
New Revision: 297115

URL: http://llvm.org/viewvc/llvm-project?rev=297115&view=rev
Log:
[APInt] Fix test names in unittest to match functions being tested. NFC

Modified:
    llvm/trunk/unittests/ADT/APIntTest.cpp

Modified: llvm/trunk/unittests/ADT/APIntTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/APIntTest.cpp?rev=297115&r1=297114&r2=297115&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/APIntTest.cpp (original)
+++ llvm/trunk/unittests/ADT/APIntTest.cpp Mon Mar  6 21:16:37 2017
@@ -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());




More information about the llvm-commits mailing list