Fix formatting in AdvancedGuide.md
Put occurrences of "#include" in a code span so they are not interpreted as headers. Other documents were not broken because the #include was not at the start of the line, but put them in code spans anyway just in case the text gets refilled in the future.
This commit is contained in:
@@ -1450,7 +1450,7 @@ two cases to consider:
|
||||
|
||||
Both static functions and definitions/declarations in an unnamed namespace are
|
||||
only visible within the same translation unit. To test them, you can `#include`
|
||||
the entire `.cc` file being tested in your `*_test.cc` file. (#including `.cc`
|
||||
the entire `.cc` file being tested in your `*_test.cc` file. (`#include`ing `.cc`
|
||||
files is not a good way to reuse code - you should not do this in production
|
||||
code!)
|
||||
|
||||
@@ -1551,8 +1551,8 @@ exception, you could catch the exception and assert on it. But Google
|
||||
Test doesn't use exceptions, so how do we test that a piece of code
|
||||
generates an expected failure?
|
||||
|
||||
`"gtest/gtest-spi.h"` contains some constructs to do this. After
|
||||
#including this header, you can use
|
||||
`"gtest/gtest-spi.h"` contains some constructs to do this. After
|
||||
`#include`ing this header, you can use
|
||||
|
||||
| `EXPECT_FATAL_FAILURE(`_statement, substring_`);` |
|
||||
|:--------------------------------------------------|
|
||||
|
||||
Reference in New Issue
Block a user