We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1b07a commit 8877d7dCopy full SHA for 8877d7d
tests/core/posix.c
@@ -205,7 +205,7 @@ void test_core_posix__p_regcomp_matches_digits_with_locale(void)
205
try_set_locale(LC_COLLATE);
206
try_set_locale(LC_CTYPE);
207
208
- cl_assert(!p_regcomp(&preg, "[:digit:]", P_REG_EXTENDED));
+ cl_assert(!p_regcomp(&preg, "[[:digit:]]", P_REG_EXTENDED));
209
210
str[1] = '\0';
211
for (c = '0'; c <= '9'; c++) {
@@ -224,7 +224,7 @@ void test_core_posix__p_regcomp_matches_alphabet_with_locale(void)
224
225
226
227
- cl_assert(!p_regcomp(&preg, "[:alpha:]", REG_EXTENDED));
+ cl_assert(!p_regcomp(&preg, "[[:alpha:]]", P_REG_EXTENDED));
228
229
230
for (c = 'a'; c <= 'z'; c++) {
0 commit comments