diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-10-15 17:06:17 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-10-15 17:06:17 +0000 |
commit | 0cbfe4d4b98355087c387124e6b852d06093a26e (patch) | |
tree | 8940b0c23afcc8138b0d13279f775fca6036f3cc /src/regex/test_regex_graph_api.c | |
parent | 745f5b00bd774fc723b644ccbea4284f5ac00771 (diff) | |
download | gnunet-0cbfe4d4b98355087c387124e6b852d06093a26e.tar.gz gnunet-0cbfe4d4b98355087c387124e6b852d06093a26e.zip |
renamed test_regex_big / fixes
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 ea1c7fb78..b57c79edd 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[]) | |||
86 | 86 | ||
87 | error = 0; | 87 | error = 0; |
88 | 88 | ||
89 | const char *regex[10] = { | 89 | const char *regex[12] = { |
90 | "ab(c|d)+c*(a(b|c)+d)+(bla)+", | 90 | "ab(c|d)+c*(a(b|c)+d)+(bla)+", |
91 | "(bla)*", | 91 | "(bla)*", |
92 | "b(lab)*la", | 92 | "b(lab)*la", |
@@ -96,10 +96,13 @@ main (int argc, char *argv[]) | |||
96 | "1*0(0|1)*", | 96 | "1*0(0|1)*", |
97 | "a*b*", | 97 | "a*b*", |
98 | "a+X*y+c|p|R|Z*K*y*R+w|Y*6+n+h*k*w+V*F|W*B*e*", | 98 | "a+X*y+c|p|R|Z*K*y*R+w|Y*6+n+h*k*w+V*F|W*B*e*", |
99 | "a" | 99 | "a", |
100 | "a|b", | ||
101 | // "abc(d+|e)fgh" | ||
102 | "PADPADPADPADPADPabcdefghixxxxxxxxxxxxxjklmnop*qstoisdjfguisdfguihsdfgbdsuivggsd" | ||
100 | }; | 103 | }; |
101 | 104 | ||
102 | for (i = 0; i < 10; i++) | 105 | for (i = 0; i < 12; i++) |
103 | { | 106 | { |
104 | // Check NFA graph creation | 107 | // Check NFA graph creation |
105 | a = GNUNET_REGEX_construct_nfa (regex[i], strlen (regex[i])); | 108 | a = GNUNET_REGEX_construct_nfa (regex[i], strlen (regex[i])); |
@@ -152,10 +155,9 @@ main (int argc, char *argv[]) | |||
152 | 155 | ||
153 | 156 | ||
154 | a = GNUNET_REGEX_construct_dfa (regex[i], strlen (regex[i])); | 157 | a = GNUNET_REGEX_construct_dfa (regex[i], strlen (regex[i])); |
155 | GNUNET_REGEX_automaton_save_graph (a, filename, | 158 | GNUNET_REGEX_automaton_save_graph (a, filename, GNUNET_REGEX_GRAPH_DEFAULT); //| |
156 | GNUNET_REGEX_GRAPH_DEFAULT | | 159 | // GNUNET_REGEX_GRAPH_VERBOSE | |
157 | GNUNET_REGEX_GRAPH_VERBOSE | | 160 | //GNUNET_REGEX_GRAPH_COLORING); |
158 | GNUNET_REGEX_GRAPH_COLORING); | ||
159 | GNUNET_REGEX_automaton_destroy (a); | 161 | GNUNET_REGEX_automaton_destroy (a); |
160 | error += filecheck (filename); | 162 | error += filecheck (filename); |
161 | 163 | ||