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

version» Context lines:

pike.git/lib/modules/Standards.pmod/testsuite.in:47:    "key-info": "DES-ECB,RSA-MD2,9FD3AAD2F2691B9A, B70665BB9BF7CBCDA60195DB94F727D3\0DES-ECB,RSA-MD2,161A3F75DC82EF26, E2EF532C65CBCFF79F83A2658132DB47",    "originator-id-symmetric": "linn@zendia.enet.dec.com,,",    "post": "PRIVACY-ENHANCED MESSAGE",    "pre": "PRIVACY-ENHANCED MESSAGE",    "proc-type": "4,ENCRYPTED",    "recipient-id-symmetric": "linn@zendia.enet.dec.com,ptf-kmc,3\0pem-dev@tis.com,ptf-kmc,4"   ]) ]])         // - Standards.URI + // RFC 3986 5.4.1 Normal Examples   test_equal((string)Standards.URI("g:h", "http://a/b/c/d;p?q"), "g:h")   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/g")   test_equal((string)Standards.URI("//g", "http://a/b/c/d;p?q"), "http://g")   test_equal((string)Standards.URI("?y", "http://a/b/c/d;p?q"), "http://a/b/c/d;p?y")   test_equal((string)Standards.URI("g?y", "http://a/b/c/d;p?q"), "http://a/b/c/g?y")   test_equal((string)Standards.URI("#s", "http://a/b/c/d;p?q"), "http://a/b/c/d;p?q#s")   test_equal((string)Standards.URI("g#s", "http://a/b/c/d;p?q"), "http://a/b/c/g#s")
pike.git/lib/modules/Standards.pmod/testsuite.in:69:   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("", "http://a/b/c/d;p?q"), "http://a/b/c/d;p?q") -  +  + // RFC 3986 5.4.2 Abnormal Examples   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")   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((string)Standards.URI("c?d=e", "http://a.b"), "http://a.b/c?d=e")   test_equal(Standards.URI("http://www.com/")->get_query_variables(),([]))   test_equal(Standards.URI("http://www.com/?a=b")->get_query_variables(),(["a":"b"]))   test_equal(Standards.URI("http://www.com/?a=b&a=b")->get_query_variables(),(["a":"b"]))   test_equal(Standards.URI("http://www.com/?a=b&c")->get_query_variables(),(["a":"b","c":0]))   test_equal(Standards.URI("http://www.com/?foo")->get_http_path_query(),"/?foo")   test_equal(Standards.URI("http://www.com/?")->get_http_path_query(),"/?")   test_equal(Standards.URI("http://www.com/")->get_http_path_query(),"/")   test_equal((string)Standards.URI("://"), "://")   test_equal((string)Standards.URI("/", "://"), ":///")