You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2015/01/27 20:20:53 UTC
svn commit: r1655113 -
/subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c
Author: stsp
Date: Tue Jan 27 19:20:52 2015
New Revision: 1655113
URL: http://svn.apache.org/r1655113
Log:
Add an svn_uri_canonicalize() test case that shows the expected
behaviour for 3 slashes after the scheme. The 3rd slash is always
retained, as in http:/// -> http:///, even if the scheme doesn't
support it (the file: scheme does, but http: actually does not).
* subversion/tests/libsvn_subr/dirent_uri-test.c
(uri_canonical): Add "http:///example.com" test case.
Modified:
subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c?rev=1655113&r1=1655112&r2=1655113&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c Tue Jan 27 19:20:52 2015
@@ -809,6 +809,7 @@ static const testcase_canonicalize_t uri
{ "http://hst/foo/../bar","http://hst/foo/../bar" },
{ "http://hst/", "http://hst" },
{ "http:///", "http://" },
+ { "http:///example.com/", "http:///example.com" },
{ "https://", "https://" },
{ "file:///", "file://" },
{ "file://", "file://" },