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.19 2010/05/23 19:25:52 grubba Exp $"]]); + test_true([["$Id$"]]);      // - 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:34:   test_equal((string)Standards.URI("g;x", "http://a/b/c/d;p?q"), "http://a/b/c/g;x")   test_equal((string)Standards.URI("g;x?y#s", "http://a/b/c/d;p?q"), "http://a/b/c/g;x?y#s")   test_equal((string)Standards.URI(".", "http://a/b/c/d;p?q"), "http://a/b/c/")   test_equal((string)Standards.URI("./", "http://a/b/c/d;p?q"), "http://a/b/c/")   test_equal((string)Standards.URI("..", "http://a/b/c/d;p?q"), "http://a/b/")   test_equal((string)Standards.URI("../", "http://a/b/c/d;p?q"), "http://a/b/")   test_equal((string)Standards.URI("../g", "http://a/b/c/d;p?q"), "http://a/b/g")   test_equal((string)Standards.URI("../..", "http://a/b/c/d;p?q"), "http://a/")   test_equal((string)Standards.URI("../../", "http://a/b/c/d;p?q"), "http://a/")   test_equal((string)Standards.URI("../../g", "http://a/b/c/d;p?q"), "http://a/g") - test_equal((string)Standards.URI("../../../g", "http://a/b/c/d;p?q"), "http://a/../g") - test_equal((string)Standards.URI("../../../../g", "http://a/b/c/d;p?q"), "http://a/../../g") + dnl test_equal((string)Standards.URI("", "http://a/b/c/d;p?q"), "http://a/b/c/d;p?q") + test_equal((string)Standards.URI("../../../g", "http://a/b/c/d;p?q"), "http://a/g") + test_equal((string)Standards.URI("../../../../g", "http://a/b/c/d;p?q"), "http://a/g")   test_equal((string)Standards.URI("/./g", "http://a/b/c/d;p?q"), "http://a/./g")   test_equal((string)Standards.URI("/../g", "http://a/b/c/d;p?q"), "http://a/../g")   test_equal((string)Standards.URI("g.", "http://a/b/c/d;p?q"), "http://a/b/c/g.")   test_equal((string)Standards.URI(".g", "http://a/b/c/d;p?q"), "http://a/b/c/.g")   test_equal((string)Standards.URI("g..", "http://a/b/c/d;p?q"), "http://a/b/c/g..")   test_equal((string)Standards.URI("..g", "http://a/b/c/d;p?q"), "http://a/b/c/..g")   test_equal((string)Standards.URI("./../g", "http://a/b/c/d;p?q"), "http://a/b/g")   test_equal((string)Standards.URI("./g/.", "http://a/b/c/d;p?q"), "http://a/b/c/g/")   test_equal((string)Standards.URI("g/./h", "http://a/b/c/d;p?q"), "http://a/b/c/g/h")   test_equal((string)Standards.URI("g/../h", "http://a/b/c/d;p?q"), "http://a/b/c/h")
pike.git/lib/modules/Standards.pmod/testsuite.in:58:   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, "??") + test_eq(Standards.URI("http://user:??@host?query")->path, "")      // - 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"]],