diff options
author | Gennadiy Civil <misterg@google.com> | 2018-06-13 18:26:24 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-06-13 18:26:24 (GMT) |
commit | 6a484baf0674085b090cc201557aaf1f2c4b7be7 (patch) | |
tree | 8d9c01aaae55c40046b18d7e4fe8cf25ffc495a1 /googletest/docs | |
parent | 025f48f89b426d83f7c46dc723b5758773452878 (diff) | |
download | googletest-6a484baf0674085b090cc201557aaf1f2c4b7be7.zip googletest-6a484baf0674085b090cc201557aaf1f2c4b7be7.tar.gz googletest-6a484baf0674085b090cc201557aaf1f2c4b7be7.tar.bz2 |
Doc sync/internal
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/faq.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/docs/faq.md b/googletest/docs/faq.md index a886bdc..30c64e3 100644 --- a/googletest/docs/faq.md +++ b/googletest/docs/faq.md @@ -1023,7 +1023,7 @@ Yes. The rule is **all test methods in the same test case must use the same fixture class**. This means that the following is **allowed** because both tests use the same fixture class (`::testing::Test`). -``` cpp +```c++ namespace foo { TEST(CoolTest, DoSomething) { SUCCEED(); @@ -1039,7 +1039,7 @@ TEST(CoolTest, DoSomething) { However, the following code is **not allowed** and will produce a runtime error from Google Test because the test methods are using different test fixture classes with the same test case name. -``` cpp +```c++ namespace foo { class CoolTest : public ::testing::Test {}; // Fixture foo::CoolTest TEST_F(CoolTest, DoSomething) { |