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

version» Context lines:

pike.git/lib/modules/Standards.pmod/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.18 2009/08/15 07:21:46 nilsson Exp $"]]); + test_true([["$Id: testsuite.in,v 1.19 2010/05/23 19:25:52 grubba Exp $"]]);      // - Standards.ISO639_2   test_equal(Standards.ISO639_2.get_language("swe"),"Swedish")   test_equal(Standards.ISO639_2.get_language("xxx"),0)   test_true(sizeof(Standards.ISO639_2.list_languages())>400)   test_equal(Standards.ISO639_2.map_639_1("sv"),"swe")   test_equal(Standards.ISO639_2.map_639_1("xx"),0)   test_true(sizeof(Standards.ISO639_2.list_639_1())>150)   test_do(   class A {
pike.git/lib/modules/Standards.pmod/testsuite.in:55:   test_equal((string)Standards.URI("g/../h", "http://a/b/c/d;p?q"), "http://a/b/c/h")   test_equal((string)Standards.URI("g;x=1/./y", "http://a/b/c/d;p?q"), "http://a/b/c/g;x=1/y")   test_equal((string)Standards.URI("g;x=1/../y", "http://a/b/c/d;p?q"), "http://a/b/c/y")   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?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, "??")    -  +    // - 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