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;fp=t%2Faggregate%2Funit_core_uri_for.t;h=453d6e02e30a39decad07dea736983947ad0e771;hp=d3696a2e84d4553e1a1c995aebba84cb9d91cb63;hb=9d1f95081b5502041ce6597d67a7aa3c23dc8e08;hpb=58b80ff1398f28fcf955eedbfc79e91628bfa491 diff --git a/t/aggregate/unit_core_uri_for.t b/t/aggregate/unit_core_uri_for.t index d3696a2..453d6e0 100644 --- a/t/aggregate/unit_core_uri_for.t +++ b/t/aggregate/unit_core_uri_for.t @@ -62,9 +62,24 @@ 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\x{2620}', { param1 => 'value1' } )->as_string, + 'http://127.0.0.1/foo/bar?param1=value1#fragment%5Cx%7B2620%7D', + 'URI for path with fragment and query params 2' +); + + +is( + Catalyst::uri_for( $context, '/bar#fragment^%$', { param1 => 'value1' } )->as_string, + 'http://127.0.0.1/foo/bar?param1=value1#fragment%5E%25%24', + 'URI for path with fragment and query params 3' +); + + # test with utf-8 is( Catalyst::uri_for( $context, 'quux', { param1 => "\x{2620}" } )->as_string,