Commit d4e084a1 authored by Abseil Team's avatar Abseil Team Committed by dinord
Browse files

Googletest export

Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent.

PiperOrigin-RevId: 407660542
parent bf0701da
...@@ -157,8 +157,11 @@ that can be used in the predicate assertion macro ...@@ -157,8 +157,11 @@ that can be used in the predicate assertion macro
example: example:
```c++ ```c++
EXPECT_PRED_FORMAT2(testing::FloatLE, val1, val2); using ::testing::FloatLE;
EXPECT_PRED_FORMAT2(testing::DoubleLE, val1, val2); using ::testing::DoubleLE;
...
EXPECT_PRED_FORMAT2(FloatLE, val1, val2);
EXPECT_PRED_FORMAT2(DoubleLE, val1, val2);
``` ```
The above code verifies that `val1` is less than, or approximately equal to, The above code verifies that `val1` is less than, or approximately equal to,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment