network: converted spaces to tabs
@@ -78,6 +78,9 @@ static void testIPAll (void)
testIPAny("localhost", 1);
testIPAny("should_not_exist", -1);
testIPAny("www.google.com", 1);
+ testIPAny ("localhost", 1);
+ testIPAny ("should_not_exist", -1);
+ testIPAny ("www.google.com", 1);
testIPv6 ("", -1); // empty string
testIPv6 ("::1", 1); // loopback, compressed, non-routable
testIPv6 ("::", 1); // unspecified, compressed, non-routable
@@ -238,8 +241,8 @@ static void testIPAll (void)
testIPv6 ("1.2.3.4::", -1);
// Testing IPv4 addresses represented as dotted-quads
- // Leading zero's in IPv4 addresses not allowed: some systems treat the leading "0" in ".086" as the start of an octal number
- // Update: The BNF in RFC-3986 explicitly defines the dec-octet (for IPv4 addresses) not to have a leading zero
+ // Leading zero's in IPv4 addresses not allowed: some systems treat the leading "0" in ".086" as the start of an octal
+ // number Update: The BNF in RFC-3986 explicitly defines the dec-octet (for IPv4 addresses) not to have a leading zero
testIPv6 ("::ffff:192.0.2.128", 1); // but this is OK, since there's a single digit
testIPv6 ("XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:1.2.3.4", -1);
@@ -656,6 +659,7 @@ static void testIPAll (void)
testIPv6 ("::0:a:b:c:d:e:f", 1); // syntactically correct, but bad form (::0:... could be combined)
testIPv6 ("a:b:c:d:e:f:0::", 1);
testIPv6 ("':10.0.0.1", -1);
+
}
else
{
