[libsoup] tests/uri-parsing: check empty username/password



commit 66650e5c52a59e1c57e5b932f2dbbc3c415973d7
Author: Dan Winship <danw gnome org>
Date:   Sun Dec 9 10:31:08 2012 +0100

    tests/uri-parsing: check empty username/password
    
    Make sure that zero-length username/password are recognized as
    different from no username/password.

 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 08274a2..166a6d8 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]