summaryrefslogtreecommitdiffstats
path: root/t/uri_utf8.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-07-18 16:22:08 -0500
committerJesse Luehrs <doy@tozt.net>2012-07-18 16:22:08 -0500
commitb5d66ba6e274eed251da951bb943b9ff67765290 (patch)
tree8b468f4ec6279a2d218f44d69a530c2a2476f1fc /t/uri_utf8.t
parentbc67313aa7191255f4123ae8d89f890e2f0772bc (diff)
downloadweb-request-b5d66ba6e274eed251da951bb943b9ff67765290.tar.gz
web-request-b5d66ba6e274eed251da951bb943b9ff67765290.zip
import the Plack::Request test suite
Diffstat (limited to 't/uri_utf8.t')
-rw-r--r--t/uri_utf8.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/uri_utf8.t b/t/uri_utf8.t
new file mode 100644
index 0000000..f10a745
--- /dev/null
+++ b/t/uri_utf8.t
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use utf8;
+use Test::More;
+
+use HTTP::Request;
+use Web::Request;
+
+my $path = "/Платежи";
+
+my $hreq = HTTP::Request->new(GET => "http://localhost" . $path);
+my $req = Web::Request->new_from_request($hreq);
+
+is $req->uri->path, '/%D0%9F%D0%BB%D0%B0%D1%82%D0%B5%D0%B6%D0%B8';
+
+done_testing;