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
Dino Radakovic
6abc9e3d79
Make references to #include
s consistent across docs
...
PiperOrigin-RevId: 554561504
Change-Id: Ia02ab6ac646bf6637d6f500a4aaedd14e0a04798
2023-08-07 12:44:53 -07:00
Abseil Team
c875c4e224
Adjust includes to use <> instead of "", consistent with quickstart pages.
...
Right now, gtest documentation uses different #include syntax. The quickstart
pages (e.g., http://google.github.io/googletest/quickstart-bazel.html#create-and-run-a-binary ) are checked in with `#include <gtest/gtest.h>` However, other
documentation (such as the primer) uses `#include "gtest/gtest.h"` (e.g.,
https://google.github.io/googletest/primer.html#writing-the-main-function ).
PiperOrigin-RevId: 551878641
Change-Id: Iab93cc1da3ef4870a07b624071b75d6e9d3568c1
2023-07-28 09:51:41 -07:00
Vũ Phạm
810fb81153
Fix typo
2023-02-19 21:59:23 +07:00
Abseil Team
d5d6ff940b
Googletest export
...
Create Assertions Reference
PiperOrigin-RevId: 375824718
2021-06-02 17:54:45 -04:00