mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
Fix unit test after function name change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280129 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c80b35060
commit
e046d5ce18
@ -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<int> AR1(TheNumbers);
|
||||
ArrayRef<int> 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<int> AR1(TheNumbers);
|
||||
ArrayRef<int> AR2(AR1.data(), 2);
|
||||
EXPECT_TRUE(AR1.keep_front(2).equals(AR2));
|
||||
EXPECT_TRUE(AR1.take_front(2).equals(AR2));
|
||||
}
|
||||
|
||||
TEST(ArrayRefTest, Equals) {
|
||||
|
Loading…
Reference in New Issue
Block a user