Commit 86ca3ad1 authored by Pekka Pessi's avatar Pekka Pessi

torture_url.c: added test for parsing empty URLs.

darcs-hash:20070601191743-65a35-defcddb989f6614913a3230beded3899fc0830ac.gz
parent b4251bb4
......@@ -214,6 +214,15 @@ int test_any(void)
TEST_S(u->url_fragment, "foo");
}
{
url_t u[1];
char b2[6] = "";
memset(u, 0xff, sizeof u);
TEST(url_d(u, b2), 0);
TEST(u->url_type, url_unknown);
}
su_home_deinit(home);
END();
......
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