pike.git
/
src
/
modules
/
_Roxen
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/_Roxen/testsuite.in:3:
test_eq(_Roxen.html_encode_string (0), "0") test_eq(_Roxen.html_encode_string (""), "") test_eq(_Roxen.html_encode_string (10), "10") test_eq(_Roxen.html_encode_string("a&b<c>d"), "a&b<c>d") test_eq(_Roxen.http_decode_string(""), "") test_eq(_Roxen.http_decode_string("abc+d%20e%41"), "abc+d eA") test_eq(_Roxen.http_decode_string(""), "") test_eq(_Roxen.http_decode_string("+"), "+")
+
test_eq(_Roxen.http_decode_string("%uD83D%uDE02"), "\U0001f602")
+
// The following inputs are all illegal, but are allowed // for compat reasons. test_eq(_Roxen.http_decode_string("%"), "\0") test_eq(_Roxen.http_decode_string("%0"), "\0") test_eq(_Roxen.http_decode_string("%%"), "\0") test_eq(_Roxen.http_decode_string("%%%"), "U") test_eq(_Roxen.http_decode_string("%41%"), "A\0") test_eq(_Roxen.http_decode_string("%41%0"), "A\0") test_eq(_Roxen.http_decode_string("%41%%"), "A\0") test_eq(_Roxen.http_decode_string("%41%%%"), "AU")