diff options
Diffstat (limited to 'docs/advanced.md')
-rw-r--r-- | docs/advanced.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/advanced.md b/docs/advanced.md index 9b3cf5a..49f7f54 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -1489,12 +1489,12 @@ INSTANTIATE_TEST_SUITE_P( MyGroup, MyTestSuite, testing::Combine( testing::Values(MyType::VALUE_0, MyType::VALUE_1), - testing::ValuesIn("", "")), + testing::Values("A", "B")), [](const testing::TestParamInfo<MyTestSuite::ParamType>& info) { std::string name = absl::StrCat( - std::get<0>(info.param) == MY_FOO ? "Foo" : "Bar", "_", + std::get<0>(info.param) == MY_FOO ? "Foo" : "Bar", std::get<1>(info.param)); - absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, '_'); + absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, ''); return name; }); ``` |