Skip to content

Commit

Permalink
Improve error message for invalid parameterized test names.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 574992011
Change-Id: Id6030a9e5f317966186cc48ef2c09ad97fa15d3e
  • Loading branch information
Abseil Team authored and copybara-github committed Oct 19, 2023
1 parent 9bb354f commit 116b7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions googletest/include/gtest/internal/gtest-param-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase {

GTEST_CHECK_(IsValidParamName(param_name))
<< "Parameterized test name '" << param_name
<< "' is invalid (contains spaces, dashes, underscores, or "
"non-alphanumeric characters), in "
<< "' is invalid (contains spaces, dashes, or any "
"non-alphanumeric characters other than underscores), in "
<< file << " line " << line << "" << std::endl;

GTEST_CHECK_(test_param_names.count(param_name) == 0)
Expand Down

0 comments on commit 116b7e5

Please sign in to comment.