X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_uri_for.t;h=453d6e02e30a39decad07dea736983947ad0e771;hb=ed5a562b5c77df8d42b562af5733641baa73107d;hp=3318192d1e683b21cddf1dcdffd81dfbc6efe5be;hpb=0ee04045a413235cb1474efcb490039691ef78e6;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_uri_for.t b/t/aggregate/unit_core_uri_for.t index 3318192..453d6e0 100644 --- a/t/aggregate/unit_core_uri_for.t +++ b/t/aggregate/unit_core_uri_for.t @@ -59,14 +59,26 @@ is( 'Plus is not encoded' ); -TODO: { - local $TODO = 'broken by 5.7008'; - 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' - ); -} +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 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(