Commit 88521ef2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

url: test previous commit

parent 99d97efb
......@@ -195,6 +195,12 @@ int main (void)
test_url_parse("p://h?o=v", "p", NULL, NULL, "h", 0, NULL, "o=v");
test_url_parse("p://h:123?o=v", "p", NULL, NULL, "h", 123, NULL, "o=v");
test_url_parse("p://u:p@h:123?o=v", "p", "u", "p", "h", 123, NULL, "o=v");
test_url_parse("p://white%20spaced", "p", NULL, NULL, "white%20spaced", 0,
NULL, NULL);
test_url_parse("p://h/white%20spaced", "p", NULL, NULL, "h", 0,
"/white%20spaced", NULL);
/* Invalid URIs */
test_url_parse("p://G a r b a g e", "p", NULL, NULL, NULL, 0, NULL, NULL);
test_url_parse("p://h/G a r b a g e", "p", NULL, NULL, "h", 0, NULL, NULL);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment