]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Birdtest: add IPv6 unit test for convert '::'
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 29 Apr 2015 14:47:32 +0000 (16:47 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 29 Apr 2015 14:50:38 +0000 (16:50 +0200)
lib/ip_test.c

index c91640f35fb5de35fa64348ad55e7aa3a4f554fc..149fc048fd84ccc884e2f4e67f7fc53760e3a385 100644 (file)
@@ -90,6 +90,10 @@ t_ip6_pton(void)
          .in  = "::1",
          .out = {0x00000000, 0x00000000, 0x00000000, 0x00000001},
       },
+      {
+         .in  = "::",
+         .out = {0x00000000, 0x00000000, 0x00000000, 0x00000000},
+      },
       {
          .in  = "2605:2700:0:3::4713:93e3",
          .out = {0x26052700, 0x00000003, 0x00000000, 0x471393E3},