diff options
author | Dan Winship <danw@gnome.org> | 2012-12-09 10:31:08 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-12-09 10:33:55 +0100 |
commit | 66650e5c52a59e1c57e5b932f2dbbc3c415973d7 (patch) | |
tree | 66728efb0d8a26c6e11319498e7598a4a7d114ed /tests | |
parent | f9816e366e53004618abcee1741885b69e9466a8 (diff) | |
download | libsoup-66650e5c52a59e1c57e5b932f2dbbc3c415973d7.tar.gz libsoup-66650e5c52a59e1c57e5b932f2dbbc3c415973d7.tar.bz2 libsoup-66650e5c52a59e1c57e5b932f2dbbc3c415973d7.zip |
tests/uri-parsing: check empty username/password
Make sure that zero-length username/password are recognized as
different from no username/password.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/uri-parsing.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/uri-parsing.c b/tests/uri-parsing.c index 08274a28..166a6d87 100644 --- a/tests/uri-parsing.c +++ b/tests/uri-parsing.c @@ -120,6 +120,11 @@ static struct { { "HTTP:////////////////", "http:////////////////", { "http", NULL, NULL, "", 80, "//////////////", NULL, NULL } }, + + { "http://@host", "http://@host/", + { "http", "", NULL, "host", 80, "/", NULL, NULL } }, + { "http://:@host", "http://@host/", + { "http", "", "", "host", 80, "/", NULL, NULL } }, }; static int num_abs_tests = G_N_ELEMENTS(abs_tests); |