diff options
author | Abseil Team <absl-team@google.com> | 2021-11-04 20:44:06 (GMT) |
---|---|---|
committer | dinord <dino.radakovich@gmail.com> | 2021-11-09 15:23:55 (GMT) |
commit | d4e084a1cc1b9d86f34b410bc43d1a5b6739427d (patch) | |
tree | 07d669b0bb6732bb1b6cd30d1287f95f1cf925ad /docs | |
parent | bf0701daa9f5b30e5882e2f8f9a5280bcba87e77 (diff) | |
download | googletest-d4e084a1cc1b9d86f34b410bc43d1a5b6739427d.zip googletest-d4e084a1cc1b9d86f34b410bc43d1a5b6739427d.tar.gz googletest-d4e084a1cc1b9d86f34b410bc43d1a5b6739427d.tar.bz2 |
Googletest export
Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent.
PiperOrigin-RevId: 407660542
Diffstat (limited to 'docs')
-rw-r--r-- | docs/advanced.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/advanced.md b/docs/advanced.md index b18be2d..7114857 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, |