(tests): Add edge case tests for "0", "0x", "0x0".
authordrepper <drepper>
Tue, 18 Sep 2007 17:56:37 +0000 (17:56 +0000)
committerdrepper <drepper>
Tue, 18 Sep 2007 17:56:37 +0000 (17:56 +0000)
inet/tst-network.c

index 564a366..5491740 100644 (file)
@@ -34,7 +34,10 @@ struct
   {"1.0", 0x100},
   {"1", 0x1},
   {"192.168.0.0", 0xC0A80000},
+  {"0", 0},
+  {"0x0", 0},
   /* Now some invalid addresses.  */
+  {"0x", INADDR_NONE},
   {"141.30.225.2800", INADDR_NONE},
   {"141.76.1.1.1", INADDR_NONE},
   {"141.76.1.11.", INADDR_NONE},