subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1066019 - /subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c
Date Tue, 01 Feb 2011 12:02:01 GMT
Author: rhuijben
Date: Tue Feb  1 12:02:01 2011
New Revision: 1066019

URL: http://svn.apache.org/viewvc?rev=1066019&view=rev
Log:
Following up on r1066006, add a few more special character in url
canonicalization tests.

* subversion/tests/libsvn_subr/dirent_uri-test.c
  (test_uri_canonicalize,
   test_uri_is_canonical): Improve coverage for special character
     handling.

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=1066019&r1=1066018&r2=1066019&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/dirent_uri-test.c Tue Feb  1 12:02:01 2011
@@ -829,6 +829,14 @@ test_uri_canonicalize(apr_pool_t *pool)
     { "http://server/d/%2E",   "http://server/d" },
     { "http://server/d/./q",   "http://server/d/q" },
     { "http://server/d/%2E/q", "http://server/d/q" },
+    { "http://server/%",       "http://server/%25" },
+    { "http://server/%25",     "http://server/%25" },
+    { "http://server/%/d",     "http://server/%25/d" },
+    { "http://server/%25/d",   "http://server/%25/d" },
+    { "http://server/+",       "http://server/+" },
+    { "http://server/%2B",     "http://server/+" },
+    { "http://server/ ",       "http://server/%20" },
+    { "http://server/#",       "http://server/%23" },
     { "file:///C%3a/temp",     "file:///C:/temp" },
     { "http://server/cr%AB",   "http://server/cr%AB" },
     { "http://server/cr%ab",   "http://server/cr%AB" },
@@ -1105,6 +1113,11 @@ test_uri_is_canonical(apr_pool_t *pool)
     { "http://hst/",                     FALSE, TRUE  },
     { "http://hst/foo/.",                FALSE, TRUE  },
     { "http://hst/foo/%2E",              FALSE, TRUE  },
+    { "http://hst/%",                    FALSE, TRUE  },
+    { "http://hst/+",                    TRUE,  TRUE  },
+    { "http://hst/#",                    FALSE, TRUE  },
+    { "http://hst/ ",                    FALSE, TRUE  },
+    { "http://hst/%2B",                  FALSE, TRUE  },
     { "http://HST",                      FALSE, TRUE  },
     { "http://HST/",                     FALSE, TRUE  },
     { "http://HST/FOO/BaR",              FALSE, TRUE  },



Mime
View raw message