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
..
2023-08-02 07:40:55 -07:00
2023-03-06 07:14:21 -08:00
2023-01-26 09:04:40 -08:00
2022-03-15 13:42:11 -07:00
2023-06-26 17:24:42 -07:00
2022-03-15 13:42:11 -07:00
2024-03-16 00:28:30 +03:00
2023-03-06 07:15:44 -08:00
2024-06-13 12:00:01 -07:00
2022-03-15 13:42:11 -07:00
2023-01-25 09:14:26 -08:00
2022-03-15 13:42:11 -07:00
2023-01-25 09:14:26 -08:00
2023-04-25 20:20:01 +02:00
2022-03-15 13:42:11 -07:00
2023-01-25 09:14:26 -08:00
2021-02-18 13:27:15 -05:00
2023-01-25 09:14:26 -08:00
2023-04-20 11:01:56 -07:00
2024-04-08 13:02:42 -07:00
2023-04-20 14:29:09 -07:00
2023-01-26 09:04:40 -08:00
2023-04-20 14:29:09 -07:00
2023-08-01 14:01:41 -07:00
2024-01-31 06:51:14 -08:00
2023-06-14 06:41:11 -07:00
2024-01-30 13:55:46 -08:00
2023-03-22 20:19:44 -07:00
2022-03-15 13:42:11 -07:00
2022-03-15 13:42:11 -07:00
2023-01-25 09:14:26 -08:00
2023-04-20 14:29:09 -07:00
2023-01-25 09:14:26 -08:00
2023-03-07 22:33:56 -08:00
2022-03-15 13:42:11 -07:00
2023-10-05 14:13:04 -07:00
2023-08-25 07:46:02 -07:00
2022-03-15 13:42:11 -07:00
2023-01-25 09:14:26 -08:00
2023-03-07 22:33:56 -08:00
2023-01-26 11:06:14 -08:00
2022-03-15 13:42:11 -07:00
2022-03-15 13:42:11 -07:00
2023-01-26 09:04:40 -08:00
2022-03-15 13:42:11 -07:00
2023-01-25 09:14:26 -08:00
2018-10-29 13:46:16 -04:00
2022-03-15 13:42:11 -07:00
2023-02-14 08:33:42 -08:00
2024-02-06 16:31:00 -08:00
2023-03-06 07:15:44 -08:00
2023-08-15 11:39:35 -07:00
2024-04-03 08:49:07 -07:00
2021-02-05 10:39:30 -08:00
2023-01-25 09:14:26 -08:00
2022-03-15 13:42:11 -07:00
2018-08-14 14:04:07 -04:00
2023-01-05 08:44:01 -08:00
2022-03-15 13:42:11 -07:00
2018-08-14 14:04:07 -04:00
2024-02-06 16:31:00 -08:00
2023-01-25 09:14:26 -08:00
2023-01-25 09:14:26 -08:00
2022-03-15 13:42:11 -07:00
2022-03-15 13:42:11 -07:00
2022-03-15 13:42:11 -07:00
2023-04-20 14:29:09 -07:00
2022-03-15 13:42:11 -07:00
2023-01-26 11:06:14 -08:00
2022-03-15 13:42:11 -07:00
2023-01-17 12:16:29 -08:00
2022-03-15 13:42:11 -07:00
2024-10-14 10:13:58 -07:00
2018-12-03 12:54:11 -05:00
2023-04-20 11:01:56 -07:00
2023-04-20 11:01:56 -07:00
2023-04-20 11:01:56 -07:00
2024-01-16 11:19:24 -08:00
2023-04-25 20:20:01 +02:00
2022-03-15 13:42:11 -07:00
2023-02-02 09:02:17 -08:00
2022-03-15 13:42:11 -07:00
2022-07-01 15:33:13 -07:00
2018-08-14 14:04:07 -04:00
2022-03-15 13:42:11 -07:00