From e42aa93b5264c1f4e1d3201e484db26f7500aeaf Mon Sep 17 00:00:00 2001 From: Bertrand Paquet Date: Sun, 8 Jul 2012 16:06:22 +0200 Subject: [PATCH] Add tests --- test.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test.c b/test.c index f50ece7..c85e95c 100644 --- a/test.c +++ b/test.c @@ -2045,6 +2045,12 @@ const struct url_test url_tests[] = ,.rv=0 } +, {.name="CONNECT request but not connect" + ,.url="hostname:443" + ,.is_connect=0 + ,.rv=1 + } + , {.name="proxy ipv6 request" ,.url="http://[1:2::3:4]/" ,.is_connect=0 @@ -2362,11 +2368,16 @@ const struct url_test url_tests[] = ,.rv=0 } -, {.name="proxy only basic auth" +, {.name="proxy only empty basic auth" ,.url="http://@/fo" ,.rv=1 /* s_dead */ } +, {.name="proxy only basic auth" + ,.url="http://toto@/fo" + ,.rv=1 /* s_dead */ + } + , {.name="proxy emtpy hostname" ,.url="http:///fo" ,.rv=1 /* s_dead */