diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2018-10-24 13:39:43 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2018-10-24 13:39:43 -0700 |
commit | c94c7f3f8eef94b381e6e0e30ab58e7290594193 (patch) | |
tree | 49f5387c73240b276615069d9bb8c067b36fdcf9 /test | |
parent | af0ecec183116e5feb4f8c9b4e963d05128479fa (diff) |
Uri: fix bugs in copying and comparing URIs with query/fragment parts
Copying query or fragment needs to copy the "hasQuery" and
"hasFragment" flags.
Comparing URIs should make use of "hasQuery" and "hasFragment" to
properly compare URIs that might not have query and/or fragment parts.
Diffstat (limited to 'test')
-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 75693cc..a57dea1 100644 --- a/test/src/UriTests.cpp +++ b/test/src/UriTests.cpp @@ -688,6 +688,8 @@ TEST(UriTests, ReferenceResolution) { {"http://example.com/", "/foo", "http://example.com/foo"}, {"http://example.com", "/foo/", "http://example.com/foo/"}, {"http://example.com/", "/foo/", "http://example.com/foo/"}, + {"http://example.com/", "?foo", "http://example.com/?foo"}, + {"http://example.com/", "#foo", "http://example.com/#foo"}, }; size_t index = 0; for (const auto& testVector : testVectors) { |