- WiP
[oweals/gnunet.git] / src / regex / test_regex_iptoregex.c
index 7fe1c384f8c4fad74e2a0bfd36185a6d3d67d61d..004d79041c18ad4b55dc399333e9d581e3d5243f 100644 (file)
@@ -65,13 +65,7 @@ test_iptoregex (const char *ipv4, const char *netmask, const char *expectedv4,
 int
 main (int argc, char *argv[])
 {
-  GNUNET_log_setup ("test-regex",
-#if VERBOSE
-                    "DEBUG",
-#else
-                    "WARNING",
-#endif
-                    NULL);
+  GNUNET_log_setup ("test-regex", "WARNING", NULL);
 
   int error;
 
@@ -82,17 +76,27 @@ main (int argc, char *argv[])
                       "110000000000000000000000(0|1)+", "FFFF::0", 16,
                       "1111111111111111(0|1)+");
 
+  error +=
+    test_iptoregex ("187.238.225.0", "255.255.255.128",
+                    "1011101111101110111000010(0|1)+", "E1E1:73F9:51BE::0", 49,
+                    "1110000111100001011100111111100101010001101111100(0|1)+");
+
   error +=
       test_iptoregex ("255.255.255.255", "255.255.255.255",
                       "11111111111111111111111111111111",
                       "FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF", 128,
-                      "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111");
+                      "11111111111111111111111111111111"
+                      "11111111111111111111111111111111"
+                      "11111111111111111111111111111111"
+                      "11111111111111111111111111111111");
 
   error +=
       test_iptoregex ("0.0.0.0", "255.255.255.255",
                       "00000000000000000000000000000000", "0::0", 128,
-                      "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
-
+                      "00000000000000000000000000000000"
+                      "00000000000000000000000000000000"
+                      "00000000000000000000000000000000"
+                      "00000000000000000000000000000000");
 
   return error;
 }