6 use lib File::Spec->catfile($FindBin::Bin, 'lib');
14 my $base = 'http://127.0.0.1';
16 my $request = Catalyst::Request->new({
17 base => URI->new($base),
20 my $context = TestApp->new({
25 my $uri_with_multibyte = URI->new($base);
26 $uri_with_multibyte->path('/');
27 $uri_with_multibyte->query_form(
32 # multibyte with utf8 bytes
33 is($context->uri_for('/', { name => '村瀬大輔' }), $uri_with_multibyte, 'uri with utf8 bytes query');
36 # multibyte with utf8 string
37 is($context->uri_for('/', { name => "\x{6751}\x{702c}\x{5927}\x{8f14}" }), $uri_with_multibyte, 'uri with utf8 string query');