|
@@ -3,7 +3,7 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2023-02-09
|
|
* Created: 2023-02-09
|
|
-* Changed: 2023-03-25
|
|
|
|
|
|
+* Changed: 2023-04-13
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
@@ -51,7 +51,7 @@ namespace
|
|
|
|
|
|
TEST_F(SectionPairIdentifierValidatorTest, getValidationRegex)
|
|
TEST_F(SectionPairIdentifierValidatorTest, getValidationRegex)
|
|
{
|
|
{
|
|
- ASSERT_STREQ(R"([a-z]([a-z0-9-]){1,31})", SectionPairIdentifierValidator{"tmp-key"}.getValidationRegex().c_str());
|
|
|
|
|
|
+ ASSERT_STREQ(R"([a-z]([a-z0-9-]){1,63})", SectionPairIdentifierValidator{"tmp-key"}.getValidationRegex().c_str());
|
|
}
|
|
}
|
|
|
|
|
|
TEST_P(SectionPairIdentifierValidatorTest_ValidArgumentTest, isValid)
|
|
TEST_P(SectionPairIdentifierValidatorTest_ValidArgumentTest, isValid)
|
|
@@ -65,5 +65,5 @@ namespace
|
|
}
|
|
}
|
|
|
|
|
|
INSTANTIATE_TEST_SUITE_P(ValidArgumentTest, SectionPairIdentifierValidatorTest_ValidArgumentTest, Values("color", "favourite-color", "age", "name"));
|
|
INSTANTIATE_TEST_SUITE_P(ValidArgumentTest, SectionPairIdentifierValidatorTest_ValidArgumentTest, Values("color", "favourite-color", "age", "name"));
|
|
- INSTANTIATE_TEST_SUITE_P(InvalidArgumentTest, SectionPairIdentifierValidatorTest_InvalidArgumentTest, Values("_color", "8color", "colOr", "color:", "-color", "color-is-valid-but-too-long-because-it-exceeds-32-characters"));
|
|
|
|
|
|
+ INSTANTIATE_TEST_SUITE_P(InvalidArgumentTest, SectionPairIdentifierValidatorTest_InvalidArgumentTest, Values("_color", "8color", "colOr", "color:", "-color", "color-would-be-usually-valid-but-too-long-because-it-exceeds-64-characters"));
|
|
}
|
|
}
|