diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-09-07 16:38:49 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-09-07 16:38:49 +0000 |
commit | 88638fd30b3c7898e1209b8128adf42b1e4bd315 (patch) | |
tree | 47433205bf0092f5144e4c0b1b2ac3807654582e /src/regex/test_regex_eval_api.c | |
parent | 9f81c1a85bb5485bdd2b4dd5a95fc02d2f6deeb4 (diff) | |
download | gnunet-88638fd30b3c7898e1209b8128adf42b1e4bd315.tar.gz gnunet-88638fd30b3c7898e1209b8128adf42b1e4bd315.zip |
coverage
Diffstat (limited to 'src/regex/test_regex_eval_api.c')
-rw-r--r-- | src/regex/test_regex_eval_api.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/regex/test_regex_eval_api.c b/src/regex/test_regex_eval_api.c index a4b183127..7538a25d8 100644 --- a/src/regex/test_regex_eval_api.c +++ b/src/regex/test_regex_eval_api.c | |||
@@ -252,7 +252,7 @@ main (int argc, char *argv[]) | |||
252 | int check_rand; | 252 | int check_rand; |
253 | char *check_proof; | 253 | char *check_proof; |
254 | 254 | ||
255 | struct Regex_String_Pair rxstr[17] = { | 255 | struct Regex_String_Pair rxstr[18] = { |
256 | {"ab?(abcd)?", 5, | 256 | {"ab?(abcd)?", 5, |
257 | {"ababcd", "abab", "aabcd", "a", "abb"}, | 257 | {"ababcd", "abab", "aabcd", "a", "abb"}, |
258 | {match, nomatch, match, match, nomatch}}, | 258 | {match, nomatch, match, match, nomatch}}, |
@@ -309,14 +309,17 @@ main (int argc, char *argv[]) | |||
309 | {nomatch}}, | 309 | {nomatch}}, |
310 | {"d|5kl", 1, | 310 | {"d|5kl", 1, |
311 | {"d5kl"}, | 311 | {"d5kl"}, |
312 | {nomatch}} | 312 | {nomatch}}, |
313 | {"a()b", 1, | ||
314 | {"ab"}, | ||
315 | {match}} | ||
313 | }; | 316 | }; |
314 | 317 | ||
315 | check_nfa = 0; | 318 | check_nfa = 0; |
316 | check_dfa = 0; | 319 | check_dfa = 0; |
317 | check_rand = 0; | 320 | check_rand = 0; |
318 | 321 | ||
319 | for (i = 0; i < 17; i++) | 322 | for (i = 0; i < 18; i++) |
320 | { | 323 | { |
321 | if (0 != regcomp (&rx, rxstr[i].regex, REG_EXTENDED)) | 324 | if (0 != regcomp (&rx, rxstr[i].regex, REG_EXTENDED)) |
322 | { | 325 | { |