summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian A. Weber2016-06-28 11:30:05 +0200
committerChristian A. Weber2016-06-28 11:30:51 +0200
commit51eacd349ad58f74914fa3339fccdf53af59b6ce (patch)
tree41dfd47d5c5a980482fa1997dc8557817a1a0c80
parentaa1711349427eb2ef0a4894059512821e7074313 (diff)
downloaditools-51eacd349ad58f74914fa3339fccdf53af59b6ce.tar.gz
itools-51eacd349ad58f74914fa3339fccdf53af59b6ce.tar.bz2
itools-51eacd349ad58f74914fa3339fccdf53af59b6ce.zip
add unit test to U() for encoding of ?
-rwxr-xr-xtests/it_html.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/it_html.t b/tests/it_html.t
index 4f4da24..22c8459 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -196,6 +196,11 @@ is(
);
is(
+ U('/test.html?foo=bar?qux=gna', array('?q' => '?r')),
+ '/test.html?foo=bar?qux=gna&%3Fq=%3Fr',
+ 'U() quoting of ? in args but not base'
+);
+is(
U('%% %1%x %1x%x1%xx%11%ff%FF'),
'%25%25%20%251%25x%20%251x%25x1%25xx%11%ff%FF',
'U() quoting of % if not followed by 2 hex digits'