aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-07-04 16:08:01 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-07-04 16:08:01 -0700
commit253ee21a8acebf6fa39e19b55904076d57a48eec (patch)
tree02d257e0b0c0eb111d2652894030823155e8ef41 /test
parent620162fe549fe6125367ed826fd619017516330f (diff)
Fix bad requirement
After parsing a URI, we don't want the square brackets to remain in the host element, because those were only there to delimit it in the context of a URI string.
Diffstat (limited to 'test')
-rw-r--r--test/src/UriTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp
index a0c2787..b17d492 100644
--- a/test/src/UriTests.cpp
+++ b/test/src/UriTests.cpp
@@ -355,8 +355,8 @@ TEST(UriTests, ParseFromStringHostBarelyLegal) {
{"//(/", "("},
{"//;/", ";"},
{"//1.2.3.4/", "1.2.3.4"},
- {"//[v7.:]/", "[v7.:]"},
- {"//[v7.aB]/", "[v7.aB]"},
+ {"//[v7.:]/", "v7.:"},
+ {"//[v7.aB]/", "v7.aB"},
};
size_t index = 0;
for (const auto& testVector : testVectors) {