Branch: Tag:

2014-10-22

2014-10-22 16:39:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.URI: Reduce DWIM.

Fixes issues with Roxen.

103:   test_equal(Standards.URI("http://www.com/?foo")->get_http_path_query(),"/?foo")   test_equal(Standards.URI("http://www.com/?")->get_http_path_query(),"/?")   test_equal(Standards.URI("http://www.com/")->get_http_path_query(),"/") + test_equal((string)Standards.URI("://"), "://") + test_equal((string)Standards.URI("/", "://"), ":///") + test_equal((string)Standards.URI("foo.bar", ":///"), ":///foo.bar")   test_eval_error(Standards.URI("www.com"))   test_eq((string)Standards.URI("www.com","http://"),"http://www.com")   test_eq((string)Standards.URI("www.com/x?a=b#y","http://"),"http://www.com/x?a=b#y")