googletest/docs/reference
Zhanyong Wan 4ee4b17bf5 Allow `DistanceFrom()` to use user-defined `abs()` by default.
`std::abs()` doesn't work on custom types. While one can use the 3-argument version of `DistanceFrom()` to specify how to compute the distance, it's not as convenient as defining `abs()` for the custom type once in the type's namespace and then use the 2-argument version.

PiperOrigin-RevId: 735741409
Change-Id: If8fb668455eb963a2ccf089f7467c64965a2e7a6
2025-03-11 06:58:43 -07:00
..
actions.md Add SaveArgByMove 2025-02-10 10:22:27 -08:00
assertions.md This change adjusts how `ASSERT_NEAR` and `EXPECT_NEAR` treats infinity, such that `ASSERT_NEAR(inf, inf, 0)` passes. This makes the behavior more consistent with `ASSERT_EQ(inf, inf)` which succeeds. 2024-10-14 10:13:58 -07:00
matchers.md Allow `DistanceFrom()` to use user-defined `abs()` by default. 2025-03-11 06:58:43 -07:00
mocking.md Revert incorrect update. 2024-02-22 08:48:24 -08:00
testing.md Add a `testing::ConvertGenerator` overload that accepts a converting functor. This allows the use of classes that do not have a converting ctor to the desired type. 2025-03-04 10:40:25 -08:00