Abseil Team 62df7bdbc1 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.
Some examples of asserts that now pass:
```
ASSERT_NEAR(inf, inf, 0)
ASSERT_NEAR(-inf, inf, inf)
ASSERT_NEAR(inf, x, inf)  // x is any finite floating point value
```

PiperOrigin-RevId: 685748133
Change-Id: I7b3af377773e8e0031e4c6b86830cbbf76bf20c6
2024-10-14 10:13:58 -07:00
..
gtest_main.cc Merge pull request #4302 from ciband:feat/nrf52 2023-07-18 08:16:57 -07:00
gtest-all.cc Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gtest-assertion-result.cc Internal Code Change 2023-03-23 03:08:22 -07:00
gtest-death-test.cc Merge pull request #4477 from tmiguelf:feature/soup_cleanup 2024-02-28 09:48:31 -08:00
gtest-filepath.cc Use the empty() method to check for emptiness instead of length() 2023-09-18 03:20:19 -07:00
gtest-internal-inl.h Reland: Optimize Google Test process startup 2024-03-07 23:53:47 -08:00
gtest-matchers.cc Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gtest-port.cc Merge pull request #4505 from to01z:add-winapi-partition-games-support 2024-04-03 13:59:49 -07:00
gtest-printers.cc Fix C++20 compatibility bug. 2023-06-30 18:50:27 -07:00
gtest-test-part.cc Add missing std includes 2023-04-20 14:29:09 -07:00
gtest-typed-test.cc Add missing std includes 2023-04-20 14:29:09 -07:00
gtest.cc 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