diff --git a/unittests/ADT/ArrayRefTest.cpp b/unittests/ADT/ArrayRefTest.cpp index 62d36819fde..43e5005e62d 100644 --- a/unittests/ADT/ArrayRefTest.cpp +++ b/unittests/ADT/ArrayRefTest.cpp @@ -82,18 +82,18 @@ TEST(ArrayRefTest, DropFront) { EXPECT_EQ(1U, AR3.drop_front(AR3.size() - 1).size()); } -TEST(ArrayRefTest, KeepBack) { +TEST(ArrayRefTest, TakeBack) { static const int TheNumbers[] = {4, 8, 15, 16, 23, 42}; ArrayRef AR1(TheNumbers); ArrayRef AR2(AR1.end() - 1, 1); - EXPECT_TRUE(AR1.keep_back().equals(AR2)); + EXPECT_TRUE(AR1.take_back().equals(AR2)); } -TEST(ArrayRefTest, KeepFront) { +TEST(ArrayRefTest, TakeFront) { static const int TheNumbers[] = {4, 8, 15, 16, 23, 42}; ArrayRef AR1(TheNumbers); ArrayRef AR2(AR1.data(), 2); - EXPECT_TRUE(AR1.keep_front(2).equals(AR2)); + EXPECT_TRUE(AR1.take_front(2).equals(AR2)); } TEST(ArrayRefTest, Equals) {