mirror of
https://github.com/google/googletest.git
synced 2025-12-21 19:14:55 +08:00
Merge branch 'google:master' into master
This commit is contained in:
commit
99bfc818fa
@ -5424,12 +5424,14 @@ class Streamlike {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class ConstIter : public std::iterator<std::input_iterator_tag,
|
class ConstIter {
|
||||||
value_type,
|
|
||||||
ptrdiff_t,
|
|
||||||
const value_type*,
|
|
||||||
const value_type&> {
|
|
||||||
public:
|
public:
|
||||||
|
using iterator_category = std::input_iterator_tag;
|
||||||
|
using value_type = T;
|
||||||
|
using difference_type = ptrdiff_t;
|
||||||
|
using pointer = const value_type*;
|
||||||
|
using reference = const value_type&;
|
||||||
|
|
||||||
ConstIter(const Streamlike* s,
|
ConstIter(const Streamlike* s,
|
||||||
typename std::list<value_type>::iterator pos)
|
typename std::list<value_type>::iterator pos)
|
||||||
: s_(s), pos_(pos) {}
|
: s_(s), pos_(pos) {}
|
||||||
@ -7287,7 +7289,7 @@ TEST(ElementsAreTest, CanDescribeNegationOfExpectingNoElement) {
|
|||||||
EXPECT_EQ("isn't empty", DescribeNegation(m));
|
EXPECT_EQ("isn't empty", DescribeNegation(m));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(ElementsAreTest, CanDescribeNegationOfExpectingOneElment) {
|
TEST(ElementsAreTest, CanDescribeNegationOfExpectingOneElement) {
|
||||||
Matcher<const list<int>&> m = ElementsAre(Gt(5));
|
Matcher<const list<int>&> m = ElementsAre(Gt(5));
|
||||||
EXPECT_EQ(
|
EXPECT_EQ(
|
||||||
"doesn't have 1 element, or\n"
|
"doesn't have 1 element, or\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user