[Spreadsheet] fix isValidAlias() (#18567)
This commit is contained in:
committed by
GitHub
parent
2240932ef3
commit
27889739bd
@@ -76,7 +76,12 @@ TEST_F(PropertySheetTest, validAliases) // NOLINT
|
||||
|
||||
TEST_F(PropertySheetTest, invalidAliases) // NOLINT
|
||||
{
|
||||
std::vector<std::string> invalidAliases {"A1", "ZZ1234", "mm"};
|
||||
std::vector<std::string> invalidAliases {"A1",
|
||||
"ZZ1234",
|
||||
"mm",
|
||||
"no spaces allowed",
|
||||
"\'NoLeadingQuotes"};
|
||||
|
||||
for (const auto& name : invalidAliases) {
|
||||
EXPECT_FALSE(propertySheet()->isValidAlias(name))
|
||||
<< "\"" << name << "\" was accepted as an alias name, and should not be";
|
||||
|
||||
Reference in New Issue
Block a user