From e7745f086a7eb9e44f6008cbc3deb2d346af9823 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 22 Sep 2023 12:55:40 -0300 Subject: [PATCH] Add testcases from RFC 4291 --- test/isinetaddr6_test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/isinetaddr6_test.c b/test/isinetaddr6_test.c index 1781b49..9b81f89 100644 --- a/test/isinetaddr6_test.c +++ b/test/isinetaddr6_test.c @@ -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", "::",