diff options
author | szengel <szengel@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-10-15 17:06:17 +0000 |
---|---|---|
committer | szengel <szengel@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-10-15 17:06:17 +0000 |
commit | 4b4175d09b1eb1d33174e8b209fa06dc67822d3b (patch) | |
tree | 8940b0c23afcc8138b0d13279f775fca6036f3cc /src/regex/test_regex_graph_api.c | |
parent | 05e079caa9029384e097a2638a1e5a938b1aa530 (diff) |
renamed test_regex_big / fixes
git-svn-id: https://gnunet.org/svn/gnunet@24323 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/regex/test_regex_graph_api.c')
-rw-r--r-- | src/regex/test_regex_graph_api.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/regex/test_regex_graph_api.c b/src/regex/test_regex_graph_api.c index ea1c7fb78d..b57c79eddd 100644 --- a/src/regex/test_regex_graph_api.c +++ b/src/regex/test_regex_graph_api.c @@ -86,7 +86,7 @@ main (int argc, char *argv[]) error = 0; - const char *regex[10] = { + const char *regex[12] = { "ab(c|d)+c*(a(b|c)+d)+(bla)+", "(bla)*", "b(lab)*la", @@ -96,10 +96,13 @@ main (int argc, char *argv[]) "1*0(0|1)*", "a*b*", "a+X*y+c|p|R|Z*K*y*R+w|Y*6+n+h*k*w+V*F|W*B*e*", - "a" + "a", + "a|b", +// "abc(d+|e)fgh" + "PADPADPADPADPADPabcdefghixxxxxxxxxxxxxjklmnop*qstoisdjfguisdfguihsdfgbdsuivggsd" }; - for (i = 0; i < 10; i++) + for (i = 0; i < 12; i++) { // Check NFA graph creation a = GNUNET_REGEX_construct_nfa (regex[i], strlen (regex[i])); @@ -152,10 +155,9 @@ main (int argc, char *argv[]) a = GNUNET_REGEX_construct_dfa (regex[i], strlen (regex[i])); - GNUNET_REGEX_automaton_save_graph (a, filename, - GNUNET_REGEX_GRAPH_DEFAULT | - GNUNET_REGEX_GRAPH_VERBOSE | - GNUNET_REGEX_GRAPH_COLORING); + GNUNET_REGEX_automaton_save_graph (a, filename, GNUNET_REGEX_GRAPH_DEFAULT); //| + // GNUNET_REGEX_GRAPH_VERBOSE | + //GNUNET_REGEX_GRAPH_COLORING); GNUNET_REGEX_automaton_destroy (a); error += filecheck (filename); |