diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-07-01 07:32:52 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-07-01 07:32:52 -0700 |
commit | c8240676774f857fcd7b01988bd1242284419a8b (patch) | |
tree | 59afc5cea81cfc33dd5d960483a24868c53ea950 /test/core/client_config | |
parent | f1c6191149675a54f9384b73dac010f7a08149c0 (diff) |
Expand uri tests
Diffstat (limited to 'test/core/client_config')
-rw-r--r-- | test/core/client_config/uri_parser_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/client_config/uri_parser_test.c b/test/core/client_config/uri_parser_test.c index 287a9d1add..e5f9017ce0 100644 --- a/test/core/client_config/uri_parser_test.c +++ b/test/core/client_config/uri_parser_test.c @@ -58,7 +58,12 @@ int main(int argc, char **argv) { test_succeeds("http://www.google.com", "http", "www.google.com", ""); test_succeeds("dns:///foo", "dns", "", "/foo"); test_succeeds("http://www.google.com:90", "http", "www.google.com:90", ""); + test_succeeds("a192.4-df:foo.coom", "a192.4-df", "", "foo.coom"); + test_succeeds("a+b:foo.coom", "a+b", "", "foo.coom"); test_fails("xyz"); test_fails("http://www.google.com?why-are-you-using-queries"); + test_fails("dns:foo.com#fragments-arent-supported-here"); + test_fails("http:?huh"); + test_fails("unix:#yeah-right"); return 0; } |