| `ASSERT_NEAR(val1, val2, abs_error);` | `EXPECT_NEAR(val1, val2, abs_error);` | the difference between `val1` and `val2` doesn't exceed the given absolute error |
| `ASSERT_NEAR(val1, val2, abs_error);` | `EXPECT_NEAR(val1, val2, abs_error);` | the difference between `val1` and `val2` doesn't exceed the given absolute error |
<!-- mdformat on -->
#### Floating-Point Predicate-Format Functions
#### Floating-Point Predicate-Format Functions
...
@@ -373,13 +367,11 @@ validating arguments passed to mock objects. A gMock *matcher* is basically a
...
@@ -373,13 +367,11 @@ validating arguments passed to mock objects. A gMock *matcher* is basically a
predicate that knows how to describe itself. It can be used in these assertion
predicate that knows how to describe itself. It can be used in these assertion
macros:
macros:
<!-- mdformat off(github rendering does not support multiline tables) -->
| `Combine(g1, g2, ..., gN)` | Yields all combinations (Cartesian product) as std\:\:tuples of the values generated by the `N` generators. |
| `Combine(g1, g2, ..., gN)` | Yields all combinations (Cartesian product) as std\:\:tuples of the values generated by the `N` generators. |
<!-- mdformat on -->
For more details, see the comments at the definitions of these functions.
For more details, see the comments at the definitions of these functions.
...
@@ -1428,8 +1418,8 @@ given test suite, whether their definitions come before or *after* the
...
@@ -1428,8 +1418,8 @@ given test suite, whether their definitions come before or *after* the
You can see [sample7_unittest.cc] and [sample8_unittest.cc] for more examples.
You can see [sample7_unittest.cc] and [sample8_unittest.cc] for more examples.
[sample7_unittest.cc]:../googletest/samples/sample7_unittest.cc"Parameterized Test example"
[sample7_unittest.cc]:https://github.com/google/googletest/blob/master/googletest/samples/sample7_unittest.cc"Parameterized Test example"
[sample8_unittest.cc]:../googletest/samples/sample8_unittest.cc"Parameterized Test example with multiple parameters"
[sample8_unittest.cc]:https://github.com/google/googletest/blob/master/googletest/samples/sample8_unittest.cc"Parameterized Test example with multiple parameters"