"googlemock/git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "1544828d276c0a4652406090c0aa26de3f6eef47"
Commit fb5d9b66 authored by Abseil Team's avatar Abseil Team Committed by Gennadiy Rozental
Browse files

Googletest export

Fix comment that describes how to test against nullopt.

PiperOrigin-RevId: 307448375
parent a6770105
...@@ -4784,7 +4784,7 @@ inline InnerMatcher AllArgs(const InnerMatcher& matcher) { return matcher; } ...@@ -4784,7 +4784,7 @@ inline InnerMatcher AllArgs(const InnerMatcher& matcher) { return matcher; }
// and is printable using 'PrintToString'. It is compatible with // and is printable using 'PrintToString'. It is compatible with
// std::optional/std::experimental::optional. // std::optional/std::experimental::optional.
// Note that to compare an optional type variable against nullopt you should // Note that to compare an optional type variable against nullopt you should
// use Eq(nullopt) and not Optional(Eq(nullopt)). The latter implies that the // use Eq(nullopt) and not Eq(Optional(nullopt)). The latter implies that the
// optional value contains an optional itself. // optional value contains an optional itself.
template <typename ValueMatcher> template <typename ValueMatcher>
inline internal::OptionalMatcher<ValueMatcher> Optional( inline internal::OptionalMatcher<ValueMatcher> Optional(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment