This commit is contained in:
parent
dff32aff97
commit
5dccf6b79e
@ -2744,19 +2744,7 @@ TEST(AnyOfTest, VariadicMatchesWhenAnyMatches) {
|
|||||||
|
|
||||||
// Tests the variadic version of the ElementsAreMatcher
|
// Tests the variadic version of the ElementsAreMatcher
|
||||||
TEST(ElementsAreTest, HugeMatcher) {
|
TEST(ElementsAreTest, HugeMatcher) {
|
||||||
vector<int> test_vector;
|
vector<int> test_vector{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
|
||||||
test_vector.push_back(1);
|
|
||||||
test_vector.push_back(2);
|
|
||||||
test_vector.push_back(3);
|
|
||||||
test_vector.push_back(4);
|
|
||||||
test_vector.push_back(5);
|
|
||||||
test_vector.push_back(6);
|
|
||||||
test_vector.push_back(7);
|
|
||||||
test_vector.push_back(8);
|
|
||||||
test_vector.push_back(9);
|
|
||||||
test_vector.push_back(10);
|
|
||||||
test_vector.push_back(11);
|
|
||||||
test_vector.push_back(12);
|
|
||||||
|
|
||||||
EXPECT_THAT(test_vector,
|
EXPECT_THAT(test_vector,
|
||||||
ElementsAre(Eq(1), Eq(2), Lt(13), Eq(4), Eq(5), Eq(6), Eq(7),
|
ElementsAre(Eq(1), Eq(2), Lt(13), Eq(4), Eq(5), Eq(6), Eq(7),
|
||||||
@ -2765,22 +2753,10 @@ TEST(ElementsAreTest, HugeMatcher) {
|
|||||||
|
|
||||||
// Tests the variadic version of the UnorderedElementsAreMatcher
|
// Tests the variadic version of the UnorderedElementsAreMatcher
|
||||||
TEST(ElementsAreTest, HugeMatcherUnordered) {
|
TEST(ElementsAreTest, HugeMatcherUnordered) {
|
||||||
vector<int> test_vector;
|
vector<int> test_vector{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
|
||||||
test_vector.push_back(1);
|
|
||||||
test_vector.push_back(2);
|
|
||||||
test_vector.push_back(3);
|
|
||||||
test_vector.push_back(4);
|
|
||||||
test_vector.push_back(5);
|
|
||||||
test_vector.push_back(6);
|
|
||||||
test_vector.push_back(7);
|
|
||||||
test_vector.push_back(8);
|
|
||||||
test_vector.push_back(9);
|
|
||||||
test_vector.push_back(10);
|
|
||||||
test_vector.push_back(11);
|
|
||||||
test_vector.push_back(12);
|
|
||||||
|
|
||||||
EXPECT_THAT(test_vector,
|
EXPECT_THAT(test_vector, UnorderedElementsAre(
|
||||||
UnorderedElementsAre(Eq(1), Eq(2), Eq(3), Eq(4), Eq(5), Eq(6), Eq(7),
|
Eq(1), Eq(2), Eq(3), Eq(4), Eq(5), Eq(6), Eq(7),
|
||||||
Eq(8), Eq(9), Eq(10), Eq(11), Ne(122)));
|
Eq(8), Eq(9), Eq(10), Eq(11), Ne(122)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user