mirror of
https://github.com/google/googletest.git
synced 2025-04-05 13:35:03 +00:00
Update comment
This commit is contained in:
parent
b7d472f122
commit
109254f421
1 changed files with 5 additions and 5 deletions
|
@ -1992,11 +1992,11 @@ class TestWithParam : public Test, public WithParamInterface<T> {
|
|||
// Note:
|
||||
//
|
||||
// 1. It is possible to make a user-defined type work with
|
||||
// {ASSERT|EXPECT}_??(), but that requires overloading the
|
||||
// comparison operators and is thus discouraged by the Google C++
|
||||
// Usage Guide. Therefore, you are advised to use the
|
||||
// {ASSERT|EXPECT}_TRUE() macro to assert that two objects are
|
||||
// equal.
|
||||
// {ASSERT|EXPECT}_??() by overloading the comparison operators. Note
|
||||
// that these macros rely on argument-dependent lookup to find the
|
||||
// comparison operators, so the operators must be defined in the same
|
||||
// namespace as the types being compared (or at least one of the
|
||||
// types if they are from different namespaces).
|
||||
//
|
||||
// 2. The {ASSERT|EXPECT}_??() macros do pointer comparisons on
|
||||
// pointers (in particular, C strings). Therefore, if you use it
|
||||
|
|
Loading…
Add table
Reference in a new issue