diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-04-19 11:39:16 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-04-19 11:39:16 +0000 |
commit | 93a5401e858e978aa2d7fc090fc1f6612c15dc3f (patch) | |
tree | 742bf947188398af64ef06eae70e6cb0b243b045 /src/regex/test_regex_eval_api.c | |
parent | 4071d1862fdcd9389e990784d0ea1fb9c4651f0f (diff) | |
download | gnunet-93a5401e858e978aa2d7fc090fc1f6612c15dc3f.tar.gz gnunet-93a5401e858e978aa2d7fc090fc1f6612c15dc3f.zip |
dfa minimization fix
Diffstat (limited to 'src/regex/test_regex_eval_api.c')
-rw-r--r-- | src/regex/test_regex_eval_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/regex/test_regex_eval_api.c b/src/regex/test_regex_eval_api.c index 49cdb3931..371d19ec1 100644 --- a/src/regex/test_regex_eval_api.c +++ b/src/regex/test_regex_eval_api.c | |||
@@ -248,7 +248,7 @@ main (int argc, char *argv[]) | |||
248 | int check_dfa; | 248 | int check_dfa; |
249 | int check_rand; | 249 | int check_rand; |
250 | 250 | ||
251 | struct Regex_String_Pair rxstr[4] = { | 251 | struct Regex_String_Pair rxstr[5] = { |
252 | {"ab?(abcd)?", 5, | 252 | {"ab?(abcd)?", 5, |
253 | {"ababcd", "abab", "aabcd", "a", "abb"}, | 253 | {"ababcd", "abab", "aabcd", "a", "abb"}, |
254 | {match, nomatch, match, match, nomatch}}, | 254 | {match, nomatch, match, match, nomatch}}, |
@@ -262,6 +262,9 @@ main (int argc, char *argv[]) | |||
262 | {nomatch, nomatch, nomatch, nomatch, nomatch}}, | 262 | {nomatch, nomatch, nomatch, nomatch, nomatch}}, |
263 | {"k|a+X*y+c|Q*e|p|R|Z*K*y*R+w|Y*6+n+h*k*w+V*F|W*B*e*g|N+V|t+L|P*j*3*9+X*h*J|J*6|b|E*i*f*R+S|Z|R|Y*Z|g*", 1, | 263 | {"k|a+X*y+c|Q*e|p|R|Z*K*y*R+w|Y*6+n+h*k*w+V*F|W*B*e*g|N+V|t+L|P*j*3*9+X*h*J|J*6|b|E*i*f*R+S|Z|R|Y*Z|g*", 1, |
264 | {"kaXycQepRZKyRwY6nhkwVFWBegNVtLPj39XhJJ6bEifRSZRYZg"}, | 264 | {"kaXycQepRZKyRwY6nhkwVFWBegNVtLPj39XhJJ6bEifRSZRYZg"}, |
265 | {nomatch}}, | ||
266 | {"F?W+m+2*6*c*s|P?U?a|B|y*i+t+A|V|6*C*7*e?Z*n*i|J?5+g?W*V?7*j?p?1|r?B?C+E+3+6*i+W*P?K?0|D+7?y*m+3?g?K?", 1, | ||
267 | {"osfjsodfonONONOnosndfsdnfsd"}, | ||
265 | {nomatch}} | 268 | {nomatch}} |
266 | }; | 269 | }; |
267 | 270 | ||
@@ -269,7 +272,7 @@ main (int argc, char *argv[]) | |||
269 | check_dfa = 0; | 272 | check_dfa = 0; |
270 | check_rand = 0; | 273 | check_rand = 0; |
271 | 274 | ||
272 | for (i = 0; i < 4; i++) | 275 | for (i = 0; i < 5; i++) |
273 | { | 276 | { |
274 | if (0 != regcomp (&rx, rxstr[i].regex, REG_EXTENDED)) | 277 | if (0 != regcomp (&rx, rxstr[i].regex, REG_EXTENDED)) |
275 | { | 278 | { |