reference: fix test_baseName
@@ -184,14 +184,14 @@ static void test_getArrayNext (void)
ksDel (array);
}
-void test_baseName ()
+static void test_baseName (void)
{
printf ("Test validate base name");
succeed_if (elektraArrayValidateBaseNameString ("#") == 0, "Start not detected correctly");
succeed_if (elektraArrayValidateBaseNameString ("#0") == 1, "#0 should be valid");
- succeed_if (elektraArrayValidateBaseNameString ("#_10") == 0, "#_10 should be valid");
- succeed_if (elektraArrayValidateBaseNameString ("#_________1234567890") == 0, "#_________1234567890 should be valid");
+ succeed_if (elektraArrayValidateBaseNameString ("#_10") == 1, "#_10 should be valid");
+ succeed_if (elektraArrayValidateBaseNameString ("#_________1234567890") == 1, "#_________1234567890 should be valid");
succeed_if (elektraArrayValidateBaseNameString ("#__________12345678901") == -1, "#__________12345678901 should not be valid");
succeed_if (elektraArrayValidateBaseNameString ("monkey") == -1, "monkey should not be valid");
}
@@ -209,6 +209,7 @@ int main (int argc, char ** argv)
test_startArray ();
test_getArray ();
test_getArrayNext ();
+ test_baseName ();
printf ("\ntest_array RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError);
