Googletest export

Added IsNan matcher

PiperOrigin-RevId: 275278634
This commit is contained in:
Abseil Team
2019-10-17 12:50:10 -04:00
committed by Gennadiy Civil
parent 2995ca563d
commit bbe4b7363b
3 changed files with 133 additions and 2 deletions

View File

@@ -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).