summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian A. Weber2017-08-21 18:10:10 +0200
committerChristian A. Weber2017-08-21 18:10:10 +0200
commit34a0745e18910acd7f90a19dbd08ff03de2456bc (patch)
treedd64479ede7dd2176c8e51d6235a34b18003da1a /tests
parent64791c69da32f7194e0cd673bb0cc70a74d33013 (diff)
downloaditools-34a0745e18910acd7f90a19dbd08ff03de2456bc.tar.gz
itools-34a0745e18910acd7f90a19dbd08ff03de2456bc.tar.bz2
itools-34a0745e18910acd7f90a19dbd08ff03de2456bc.zip
add it_url::parse_str() which leaves dots and spaces in arg names intact
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_html.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/it_html.t b/tests/it_html.t
index 538a350..2291c54 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -196,6 +196,12 @@ is(
);
is(
+ U("/foo.html?bar.qux=a.b", array('c.d' => "e.f", 'g h' => "i j")),
+ '/foo.html?bar.qux=a.b&c.d=e.f&g+h=i+j',
+ 'U() dots and spaces in arg names are preserved'
+);
+
+is(
U("/foo.html?bar=qux#frag=frog", array('baz' => "gna")),
'/foo.html?bar=qux&baz=gna#frag=frog',
'U() fragment after params'