summaryrefslogtreecommitdiffstats
path: root/docs/advanced.md
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-02-12 17:19:16 (GMT)
committerDerek Mauro <dmauro@google.com>2021-02-18 18:26:48 (GMT)
commitbc32a874522a3b1631b664952a9887d45d44b573 (patch)
tree741958261cbb60fac7cfdf9eed7b80922279e12e /docs/advanced.md
parent1a5a78b9a9c6c285a7897a411cb96bb2ab36d277 (diff)
downloadgoogletest-bc32a874522a3b1631b664952a9887d45d44b573.zip
googletest-bc32a874522a3b1631b664952a9887d45d44b573.tar.gz
googletest-bc32a874522a3b1631b664952a9887d45d44b573.tar.bz2
Googletest export
Update the custom name example to not use underscores. The NOTE a few blocks above specifically calls out that test names should not contain undersccores, so probably the example should not suggest using underscores. PiperOrigin-RevId: 357204578
Diffstat (limited to 'docs/advanced.md')
-rw-r--r--docs/advanced.md6
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;
});
```