Skip to content

Commit d4e084a

Browse files
Abseil Teamdinord
Abseil Team
authored andcommitted
Googletest export
Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent. PiperOrigin-RevId: 407660542
1 parent bf0701d commit d4e084a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/advanced.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,11 @@ that can be used in the predicate assertion macro
157157
example:
158158

159159
```c++
160-
EXPECT_PRED_FORMAT2(testing::FloatLE, val1, val2);
161-
EXPECT_PRED_FORMAT2(testing::DoubleLE, val1, val2);
160+
using ::testing::FloatLE;
161+
using ::testing::DoubleLE;
162+
...
163+
EXPECT_PRED_FORMAT2(FloatLE, val1, val2);
164+
EXPECT_PRED_FORMAT2(DoubleLE, val1, val2);
162165
```
163166
164167
The above code verifies that `val1` is less than, or approximately equal to,

0 commit comments

Comments
 (0)