pike.git/
lib/
modules/
Standards.pmod/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2012-03-09
2012-03-09 14:46:24 by Martin Nilsson <nilsson@opera.com>
e07e1f9ad33f8d3d1177e5af2665b9bff4aee043 (
4
lines) (+
4
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
Fixes to get_http_path_query()
64:
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_eval_error(Standards.URI("www.com")) test_eq((string)Standards.URI("www.com","http://"),"http://www.com") test_eq((string)Standards.URI("ftp://www.com/x?a=b#y","http://"),"ftp://www.com/x?a=b#y")