diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 13:31:22 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 13:31:22 -0700 |
commit | 4fbc33c78f7c532a3e73fc2ee124141ccf4508f0 (patch) | |
tree | 1f91cb8ecc4345c71631abedd97e9cef1bc1745c | |
parent | 456ce952f2ba8e6cb9c63ee211b2fa7db49d9529 (diff) |
Add a few more IPv6 test vectors
-rw-r--r-- | test/src/UriTests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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}, |