Commit 1a31763e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

url: improve URL query parameter tests

parent 57f51316
......@@ -191,6 +191,10 @@ int main (void)
test_url_parse("protocol://john:doe@", "protocol", "john", "doe", "", 567, NULL, NULL);
test_url_parse("http://a.b/?opt=val", "http", NULL, NULL, "a.b", 0, "/", "opt=val");
test_url_parse("p://u:p@host:123/a/b/c?o=v", "p", "u", "p", "host", 123, "/a/b/c", "o=v");
test_url_parse("p://?o=v", "p", NULL, NULL, "", 0, NULL, "o=v");
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");
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