From 4fbc33c78f7c532a3e73fc2ee124141ccf4508f0 Mon Sep 17 00:00:00 2001
From: Richard Walters <rwalters@digitalstirling.com>
Date: Fri, 9 Oct 2020 13:31:22 -0700
Subject: Add a few more IPv6 test vectors

---
 test/src/UriTests.cpp | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'test/src/UriTests.cpp')

diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp
index df87093..6a16740 100644
--- a/test/src/UriTests.cpp
+++ b/test/src/UriTests.cpp
@@ -733,6 +733,7 @@ TEST(UriTests, IPv6Address) {
         {"http://[fFfF::1]", "fFfF::1", true},
         {"http://[1234::1]", "1234::1", true},
         {"http://[fFfF:1:2:3:4:5:6:a]", "fFfF:1:2:3:4:5:6:a", true},
+        {"http://[2001:db8:85a3::8a2e:0]/", "2001:db8:85a3::8a2e:0", true},
         {"http://[2001:db8:85a3:8a2e::]/", "2001:db8:85a3:8a2e::", true},
 
         // invalid
@@ -751,6 +752,7 @@ TEST(UriTests, IPv6Address) {
         {"http://::ffff:a.2.3.4]/", "", false},
         {"http://::ffff:1.a.3.4]/", "", false},
         {"http://[2001:db8:85a3:8d3:1319:8a2e:370:7348:0000]/", "", false},
+        {"http://[2001:db8:85a3:8d3:1319:8a2e:370:7348::1]/", "", false},
         {"http://[2001:db8:85a3::8a2e:0:]/", "", false},
         {"http://[2001:db8:85a3::8a2e::]/", "", false},
         {"http://[]/", "", false},
-- 
cgit v1.2.3