pike.git
/
lib
/
modules
/
Protocols.pmod
/
HTTP.pmod
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/testsuite.in:179:
]], 1) test_eq(H.http_encode_query((["&":"?"])), "%26amp%3B=%3F") test_eq([[H.http_encode_query((["'=\"":"\0\0\0"]))]], "%27%3D%22=%00%00%00") test_eq(H.percent_encode("AZaz09-._~"), "AZaz09-._~") test_eq(H.percent_encode(":!\1 \x80\xff"), "%3A%21%01%20%80%FF") test_eq(H.percent_encode("a\u0100a"), "a\u0100a") test_eq(H.percent_decode("%00x%3bbbb%3B"), "\0x;bbb;") test_eq(H.percent_decode(""), "")
-
test_
eq
(H.percent_decode("%"), "\0")
dnl Change?
-
test_
eq
(H.percent_decode("%1"), "\0")
dnl Change?
+
test_
eval_error
(H.percent_decode("%"), "\0")
+
test_
eval_error
(H.percent_decode("%1"), "\0")
test_eq(H.uri_encode(":/a\u0100a+"), "%3A%2Fa%C4%80a%2B") test_eq(H.uri_encode_invalids(":/a\u0100a+"), ":/a%C4%80a+") test_eq(H.uri_decode("%3A%2Fa%C4%80a%2B"), ":/a\u0100a+") test_eq(H.iri_encode(":+<\00\x80\u0100"), "%3A%2B%3C%00\x80\u0100") dnl quoted_string_encode dnl quoted_string_decode test_do(add_constant("H")) test_do(add_constant("CON")) END_MARKER Newline at end of file added.