[Jifty-commit] r3200 - jifty/trunk/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun May 6 19:58:09 EDT 2007
Author: ruz
Date: Sun May 6 19:58:08 2007
New Revision: 3200
Added:
jifty/trunk/t/10-utf8.t
Log:
* add tests for UTF-8 related things
Added: jifty/trunk/t/10-utf8.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/10-utf8.t Sun May 6 19:58:08 2007
@@ -0,0 +1,24 @@
+#!/usr/bin/perl
+
+use warnings;
+use strict;
+
+use Test::More tests => 3;
+
+use Jifty::Everything;
+
+# test that various parts of jifty work with UTF-8 in the right way
+
+diag "escape_uri" if $ENV{TEST_VERBOSE};
+{
+ my $s = 'a';
+ Jifty::View::Mason::Handler::escape_uri(\$s);
+ is $s, 'a', 'ASCII';
+ $s = "\x{E9}";
+ Jifty::View::Mason::Handler::escape_uri(\$s);
+ is $s, '%C3%A9', 'latin small letter e with accute';
+ $s = "\x{435}";
+ Jifty::View::Mason::Handler::escape_uri(\$s);
+ is $s, '%D0%B5', 'russian small letter e';
+}
+
More information about the Jifty-commit
mailing list