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) |
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 a4b183127b..7538a25d8a 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[]) int check_rand; char *check_proof; - struct Regex_String_Pair rxstr[17] = { + struct Regex_String_Pair rxstr[18] = { {"ab?(abcd)?", 5, {"ababcd", "abab", "aabcd", "a", "abb"}, {match, nomatch, match, match, nomatch}}, @@ -309,14 +309,17 @@ main (int argc, char *argv[]) {nomatch}}, {"d|5kl", 1, {"d5kl"}, - {nomatch}} + {nomatch}}, + {"a()b", 1, + {"ab"}, + {match}} }; check_nfa = 0; check_dfa = 0; check_rand = 0; - for (i = 0; i < 17; i++) + for (i = 0; i < 18; i++) { if (0 != regcomp (&rx, rxstr[i].regex, REG_EXTENDED)) { |