[Spreadsheet] fix isValidAlias() (#18567)

This commit is contained in:
Mark Ganson TheMarkster
2024-12-23 11:18:30 -06:00
committed by GitHub
parent 2240932ef3
commit 27889739bd
2 changed files with 20 additions and 13 deletions

View File

@@ -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";