From 89cc8445f7f76b55e209b8c0c5407b0e592b1117 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 6 Jul 2015 16:57:03 +0200 Subject: Clarify treatment of double slashes in rtl::Uri::convertRelToAbs Change-Id: I71d0ded04b35472f14e4764a47212c73ac500814 --- sal/qa/rtl/uri/rtl_testuri.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sal') diff --git a/sal/qa/rtl/uri/rtl_testuri.cxx b/sal/qa/rtl/uri/rtl_testuri.cxx index e92afe5777c5..191bf5dc2b53 100644 --- a/sal/qa/rtl/uri/rtl_testuri.cxx +++ b/sal/qa/rtl/uri/rtl_testuri.cxx @@ -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; -- cgit