X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Funit_core_uri_for.t;h=a54150890c262a3e807b54ba2e0e6c9aa1c19c36;hp=d3696a2e84d4553e1a1c995aebba84cb9d91cb63;hb=d2995a765f120b78a134a6e8dfb14b0f7fde8644;hpb=3a6d7f15d1dcc08c06fb2ba77d608b6cf17edd66 diff --git a/t/aggregate/unit_core_uri_for.t b/t/aggregate/unit_core_uri_for.t index d3696a2..a541508 100644 --- a/t/aggregate/unit_core_uri_for.t +++ b/t/aggregate/unit_core_uri_for.t @@ -62,7 +62,19 @@ is( is( Catalyst::uri_for( $context, '/bar#fragment', { param1 => 'value1' } )->as_string, 'http://127.0.0.1/foo/bar?param1=value1#fragment', - 'URI for path with fragment and query params' + 'URI for path with fragment and query params 1' +); + +is( + Catalyst::uri_for( $context, '/bar#fragment^%$', { param1 => 'value1' } )->as_string, + 'http://127.0.0.1/foo/bar?param1=value1#fragment^%$', + 'URI for path with fragment and query params 3' +); + +is( + Catalyst::uri_for( $context, '/foo#bar/baz', { param1 => 'value1' } )->as_string, + 'http://127.0.0.1/foo/foo?param1=value1#bar/baz', + 'URI for path with fragment and query params 3' ); # test with utf-8