Add testcases from RFC 4291
This commit is contained in:
parent
999bf8d5d6
commit
e7745f086a
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
const char *valid[] = {
|
||||
/* valid IPv6 (single colon)*/
|
||||
"2001:DB80:0000:0000:0008:800:200C:417A",
|
||||
"0000:0000:0000:0000:0000:0000:0000:0001",
|
||||
"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
|
||||
"fe80:0000:0000:0000:0202:b3ff:fe1e:8329",
|
||||
|
@ -15,6 +16,10 @@ const char *valid[] = {
|
|||
"2001:DB8:0:0:8:800:200C:417A",
|
||||
"0000:0000:0000:0000:0000:0000:0000:0",
|
||||
"FEDC:BA98:7654:3210:FEDC:BA98:7654:3210",
|
||||
"0:0:0:0:0:0:0:1",
|
||||
"FF01:0:0:0:0:0:0:101",
|
||||
"0:0:0:0:0:0:0:0",
|
||||
"2001:DB8:0:0:8:800:200C:417A",
|
||||
|
||||
/* valid IPv6 (double colon) */
|
||||
"fe80::c001:a0ff:fe12:3456",
|
||||
|
@ -28,6 +33,7 @@ const char *valid[] = {
|
|||
"0000:0000:0000:0000:0000:0000:0000:00::",
|
||||
"2001:0db8:85a3:0000:0000::8a2e:0370:7334",
|
||||
"2001::5",
|
||||
"FF01::101",
|
||||
"::ffff:192.168.2.1",
|
||||
"::FFFF:192.168.2.1",
|
||||
"::",
|
||||
|
|
Loading…
Reference in a new issue