diff tests.c @ 635:d191ded8a790

Improve the experimental regex matching debugging macros.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Jan 2020 07:16:18 +0200
parents afcaf5e38f56
children 9e1f9e1d1487
line wrap: on
line diff
--- a/tests.c	Tue Jan 21 05:00:53 2020 +0200
+++ b/tests.c	Tue Jan 21 07:16:18 2020 +0200
@@ -881,6 +881,10 @@
         th_regex_ctx *reg = NULL;
         int res;
 
+#ifdef TH_EXPERIMENTAL_REGEX_DEBUG
+        th_dbg_re_flags = TH_DBG_RE_MATCH;
+#endif
+
 #if 0
         res = th_regex_compile(&reg, "z*k+abba fabboa? k{4} [gz]{1,2} foo(bar|zoo)?");
         if (res != THERR_OK)
@@ -933,7 +937,7 @@
             {
 //                { "zoobar"                       , 1, 0 },
                 { "zoo lol bar"                  , 1, 0 },
-//                { "hoho zoo lol lol bar bar"     , 1, 0 },
+                { "hoho zoo lol lol bar bar"     , 1, 0 },
                 { NULL                           , 0, 0 }
             };