diff options
author | Abseil Team <absl-team@google.com> | 2019-10-18 15:23:13 -0400 |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-10-22 09:37:46 -0400 |
commit | 011c4e23d5254bed4b64099a3cb5233d4c4b76e8 (patch) | |
tree | 5cea32aa9754877cfe20b3cbb2ac8a2f29ff9b1e /googlemock/docs | |
parent | f966ed158177f2ed6ff2c402effb16f7f00ca40b (diff) | |
download | googletest-011c4e23d5254bed4b64099a3cb5233d4c4b76e8.tar.gz googletest-011c4e23d5254bed4b64099a3cb5233d4c4b76e8.tar.bz2 googletest-011c4e23d5254bed4b64099a3cb5233d4c4b76e8.zip |
Googletest export
Rolling forward IsNan() matcher with fixes in test for -Wconversion issues. Use
std::nanf and std::nanl where appropriate.
PiperOrigin-RevId: 275523003
Diffstat (limited to 'googlemock/docs')
-rw-r--r-- | googlemock/docs/cheat_sheet.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/googlemock/docs/cheat_sheet.md b/googlemock/docs/cheat_sheet.md index 8ec5ea08..3236e6a9 100644 --- a/googlemock/docs/cheat_sheet.md +++ b/googlemock/docs/cheat_sheet.md @@ -287,6 +287,7 @@ is not changed afterwards, or the meaning of your matcher will be changed. | `FloatEq(a_float)` | `argument` is a `float` value approximately equal to `a_float`, treating two NaNs as unequal. | | `NanSensitiveDoubleEq(a_double)` | `argument` is a `double` value approximately equal to `a_double`, treating two NaNs as equal. | | `NanSensitiveFloatEq(a_float)` | `argument` is a `float` value approximately equal to `a_float`, treating two NaNs as equal. | +| `IsNan()` | `argument` is any floating-point type with a NaN value. | <!-- mdformat on --> The above matchers use ULP-based comparison (the same as used in googletest). |