Merge 109254f421d5837465a3eff104b6774dcf33c933 into 7140cd416cecd7462a8aae488024abeee55598e4

This commit is contained in:
Konstantin Varlamov 2026-06-11 19:28:18 +02:00 committed by GitHub
commit 5c1000c228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1863,11 +1863,11 @@ class [[nodiscard]] TestWithParam : public Test,
// 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