Branch: Tag:

2016-03-03

2016-03-03 22:37:40 by Martin Nilsson <nilsson@fastmail.com>

Trivial test of email in userinfo in URI.

111:   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")   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")   // 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")   test_eq(Standards.URI("http://user:??@host?query")->password, "??")   test_eq(Standards.URI("http://user:??@host?query")->path, "")   test_eq(Standards.URI("HTTP://WWW.COM/")->scheme, "http")