Clarify treatment of double slashes in rtl::Uri::convertRelToAbs

Change-Id: I71d0ded04b35472f14e4764a47212c73ac500814
This commit is contained in:
Stephan Bergmann
2015-07-06 16:57:03 +02:00
parent dd69bde36a
commit 89cc8445f7

View File

@@ -330,7 +330,11 @@ void Test::test_Uri() {
{ "http://a/b/..", "../c", "http://a/c" },
{ "http://a/./b/", ".././.././../c", "http://a/c" },
{ "http://a", "b", "http://a/b" },
{ "", "http://a/b/../c", "http://a/c" } };
{ "", "http://a/b/../c", "http://a/c" },
{ "http://a/b/c", "d", "http://a/b/d" },
{ "http://a/b/c/", "d", "http://a/b/c/d" },
{ "http://a/b/c//", "d", "http://a/b/c//d" } };
for (std::size_t i = 0; i < sizeof aRelToAbsTest / sizeof (RelToAbsTest); ++i)
{
rtl::OUString aAbs;