Home | History | Annotate | Download | only in tests

Lines Matching refs:Match

106       g_print ("failed \t(pattern: \"%s\", compile: %d, match %d)\n",
181 gboolean match;
185 match = g_regex_match_simple (pattern, string, compile_opts, match_opts);
186 if (match != expected)
188 g_print ("failed \t(unexpected %s)\n", match ? "match" : "mismatch");
193 verbose ("passed (%s)\n", match ? "match" : "nomatch");
217 gboolean match;
223 match = g_regex_match_full (regex, string, string_len,
225 if (match != expected)
229 g_print ("failed \t(unexpected %s) '%s' against '%s'\n", match ? "match" : "mismatch", e1, e2);
238 match = g_regex_match (regex, string, match_opts2, NULL);
239 if (match != expected)
250 verbose ("passed (%s)\n", match ? "match" : "nomatch");
269 typedef struct _Match Match;
274 Match *match = data;
275 if (match == NULL)
277 g_free (match->string);
278 g_free (match);
304 Match *match;
308 match = g_new0 (Match, 1);
309 match->string = g_strdup (expected_string);
310 match->start = va_arg (args, gint);
311 match->end = va_arg (args, gint);
312 expected = g_slist_prepend (expected, match);
323 Match *match = g_new0 (Match, 1);
324 match->string = g_match_info_fetch (match_info, 0);
325 match->start = UNTOUCHED;
326 match->end = UNTOUCHED;
327 g_match_info_fetch_pos (match_info, 0, &match->start, &match->end);
328 matches = g_slist_prepend (matches, match);
340 match_count == 1 ? "match" : "matches",
350 Match *exp = l_exp->data;
351 Match *match = l_match->data;
353 if (!streq(exp->string, match->string))
356 match->string, exp->string);
361 if (exp->start != match->start || exp->end != match->end)
364 match->start, match->end, exp->start, exp->end);
377 verbose ("passed (%d %s)\n", count, count == 1 ? "match" : "matches");
448 verbose ("fetching match count (string: \"%s\", pattern: \"%s\", start: %d) \t",
695 match_count == 1 ? "match" : "matches",
714 match_count == 1 ? "match" : "matches");
795 token_count == 1 ? "match" : "matches",
899 token_count == 1 ? "match" : "matches",
968 token_count == 1 ? "match" : "matches",
1318 Match *match;
1322 match = g_new0 (Match, 1);
1323 match->string = g_strdup (expected_string);
1324 match->start = va_arg (args, gint);
1325 match->end = va_arg (args, gint);
1326 expected = g_slist_prepend (expected, match);
1352 match_count == 1 ? "match" : "matches",
1363 Match *exp = l_exp->data;
1392 verbose ("passed (%d %s)\n", match_count, match_count == 1 ? "match" : "matches");
1425 Match *match;
1429 match = g_new0 (Match, 1);
1430 match->string = g_strdup (expected_string);
1431 match->start = va_arg (args, gint);
1432 match->end = va_arg (args, gint);
1433 expected = g_slist_prepend (expected, match);
1458 match_count == 1 ? "match" : "matches",
1469 Match *exp = l_exp->data;
1498 verbose ("passed (%d %s)\n", match_count, match_count == 1 ? "match" : "matches");
1808 TEST_PARTIAL("ab", "ab", FALSE); /* normal match. */