summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-11-04 16:44:06 -0400
committerdinord <dino.radakovich@gmail.com>2021-11-09 10:23:55 -0500
commitd4e084a1cc1b9d86f34b410bc43d1a5b6739427d (patch)
tree07d669b0bb6732bb1b6cd30d1287f95f1cf925ad
parentbf0701daa9f5b30e5882e2f8f9a5280bcba87e77 (diff)
downloadgoogletest-git-d4e084a1cc1b9d86f34b410bc43d1a5b6739427d.tar.gz
Googletest export
Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent. PiperOrigin-RevId: 407660542
-rw-r--r--docs/advanced.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/advanced.md b/docs/advanced.md
index b18be2dc..71148572 100644
--- a/docs/advanced.md
+++ b/docs/advanced.md
@@ -157,8 +157,11 @@ that can be used in the predicate assertion macro
example:
```c++
-EXPECT_PRED_FORMAT2(testing::FloatLE, val1, val2);
-EXPECT_PRED_FORMAT2(testing::DoubleLE, val1, val2);
+using ::testing::FloatLE;
+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,