pike.git / lib / modules / Standards.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Standards.pmod/testsuite.in:60:   test_equal((string)Standards.URI("g?y/../x", "http://a/b/c/d;p?q"), "http://a/b/c/g?y/../x")   test_equal((string)Standards.URI("g#s/./x", "http://a/b/c/d;p?q"), "http://a/b/c/g#s/./x")   test_equal((string)Standards.URI("g#s/../x", "http://a/b/c/d;p?q"), "http://a/b/c/g#s/../x")   test_equal((string)Standards.URI("http:g", "http://a/b/c/d;p?q"), "http:g")   test_equal(Standards.URI("http://www.com/")->get_query_variables(),([]))   test_equal(Standards.URI("http://www.com/?a=b")->get_query_variables(),(["a":"b"]))   // 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")->password, "??")   test_eq(Standards.URI("http://user:??@host?query")->path, "") + test_eq(Standards.URI("HTTP://WWW.COM/")->scheme, "http")    -  + test_eval_error(Standards.URI("")) + test_eval_error(Standards.URI("#foo")) + test_eval_error(Standards.URI("/foo")) + test_eval_error(Standards.URI("x_x:")) +  +    // - Standards.IDNA   define([[test_punycode]], [[    test_eq([[Standards.IDNA.Punycode.encode($1)]], [[$2]])    test_eq([[Standards.IDNA.Punycode.decode($2)]], [[$1]])   ]])   test_punycode([["\x644\x64A\x647\x645\x627\x628\x62A\x643\x644"    "\x645\x648\x634\x639\x631\x628\x64A\x61F"]],    [["egbpdaj6bu4bxfgehfvwxn"]]) // A   test_punycode([["\x4ED6\x4EEC\x4E3A\x4EC0\x4E48\x4E0D\x8BF4\x4E2D\x6587"]],    [["ihqwcrb4cv8a8dqg056pqjye"]]) // B