summaryrefslogtreecommitdiff
path: root/test/uri-tests.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 23:17:51 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 23:17:51 +0000
commit9b2a8180ba02d1d9f906620ea45c2aba8b3dd1a7 (patch)
treecff2e5562dff0b4668cc7ee6996173d772d37a1e /test/uri-tests.c
parentce178acc7b65c46ba4266cfce3ec9cc6e0f99d2c (diff)
downloadneon-9b2a8180ba02d1d9f906620ea45c2aba8b3dd1a7.tar.gz
* test/uri-tests.c (parse): Test for the slightly odd triple-slash
case. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@822 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test/uri-tests.c')
-rw-r--r--test/uri-tests.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/uri-tests.c b/test/uri-tests.c
index 2a07412..6989aad 100644
--- a/test/uri-tests.c
+++ b/test/uri-tests.c
@@ -279,6 +279,14 @@ static int parse(void)
{ "ftp://[feed::cafe]:555", "ftp", "[feed::cafe]", 555, "/", NULL, NULL, NULL },
{ "DAV:", "DAV", NULL, 0, "", NULL, NULL, NULL },
+
+ /* Some odd cases: heir-part and relative-ref will both match
+ * with a zero-length expansion of "authority" (since *
+ * reg-name can be zero-length); so a triple-slash URI-ref
+ * will be matched as "//" followed by a zero-length authority
+ * followed by a path of "/". */
+ { "foo:///", "foo", "", 0, "/", NULL, NULL, NULL },
+ { "///", NULL, "", 0, "/", NULL, NULL, NULL },
/* URI-references: */
{ "//foo.com/bar", NULL, "foo.com", 0, "/bar", NULL, NULL, NULL },