diff options
author | Dan Winship <danw@gnome.org> | 2009-09-07 18:25:15 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2009-09-07 18:25:15 -0400 |
commit | e646a260cc08cca8e277b7ebc39e8e215f7c1ff7 (patch) | |
tree | 5be844bf72ebf3f963c6df36fb17ae9bba72ef59 /tests/uri-parsing.c | |
parent | cb899dc01de595859d46f3de6026859f627d2758 (diff) | |
download | libsoup-e646a260cc08cca8e277b7ebc39e8e215f7c1ff7.tar.gz |
SoupURI: an empty query is distinct from no query
http://bugzilla.gnome.org/show_bug.cgi?id=594405
Diffstat (limited to 'tests/uri-parsing.c')
-rw-r--r-- | tests/uri-parsing.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/uri-parsing.c b/tests/uri-parsing.c index 407ddfd7..c2e4b584 100644 --- a/tests/uri-parsing.c +++ b/tests/uri-parsing.c @@ -61,7 +61,11 @@ static struct { /* Try to recover certain kinds of invalid URIs */ { "http://host/path with spaces", - "http://host/path%20with%20spaces" } + "http://host/path%20with%20spaces" }, + + /* Bug 594405; 0-length is different from not-present */ + { "http://host/path?", "http://host/path?" }, + { "http://host/path#", "http://host/path#" } }; static int num_abs_tests = G_N_ELEMENTS(abs_tests); |