Branch: Tag:

2016-06-08

2016-06-08 13:43:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [Standards.URI]: Added some more tests.

112:   test_eq((string)Standards.URI("www.com/x?a=b#y","http://"),"http://www.com/x?a=b#y")   test_eq((string)Standards.URI("ftp://www.com/x?a=b#y","http://"),"ftp://www.com/x?a=b#y")   test_eq(Standards.URI("http://bloke@gmail.com@yahoo.com")->user, "bloke@gmail.com") + test_eq((string)Standards.URI("a", "file:"), "file:a") + test_eq((string)Standards.URI("a", "file:b"), "file:a") + test_eq((string)Standards.URI("a", "file:b/c"), "file:b/a") + test_eq((string)Standards.URI("a/b", "file:"), "file:a/b") + test_eq((string)Standards.URI("a/b", "file:c"), "file:a/b") + test_eq((string)Standards.URI("a/b", "file:c/d"), "file:c/a/b") + test_eq((string)Standards.URI("<a@example.com>", "mailto:"), "mailto:<a@example.com>")   // Some tests of empty path followed by a query.   test_eq(Standards.URI("http://user:??@host?query")->query, "query")   test_eq(Standards.URI("http://user:??@host?query")->user, "user")