Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=d50d684be31378611bc6e035848f21a0ac42f6d5

commit d50d684be31378611bc6e035848f21a0ac42f6d5
Author: James Buren <[email protected]>
Date:   Mon May 6 04:25:48 2013 -0500

re2ctest: import a new program which is designed to test re2c
expressions

diff --git a/src/re2ctest.c b/src/re2ctest.c
new file mode 100644
index 0000000..ac68629
--- /dev/null
+++ b/src/re2ctest.c
@@ -0,0 +1,22 @@
+#include "local.h"
+
+struct re2ctest
+{
+  const char *pattern;
+  bool result;
+};
+
+static struct re2ctest root[] =
+{
+  {     "/", true  },
+  { "/root", true  },
+  {  "/var", true  },
+  {  "/tmp", true  },
+  { "/home", true  },
+  {      "", false },
+  { "     ", false },
+  {    "/@", false },
+  {  "/etc", true  },
+  {     "^", false },
+  {       0, false },
+};
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to