File: 06-encoding.t

package info (click to toggle)
libtenjin-perl 1.000001-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 272 kB
  • ctags: 61
  • sloc: perl: 717; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!perl -T

use strict;
use warnings;
use Test::More tests => 3;
use Tenjin;
use utf8;

my $t = Tenjin->new({ path => ['t/data/encoding'] });
ok($t, 'Got a proper Tenjin instance');

is($t->render('hebrew.html'), "<h1>ג'רי סיינפלד</h1>\n", 'UTF-8 (Hebrew) properly decoded');

is($t->render('chinese.html'), "<a title=\"汉语/漢語\">Chinese</a>\n", 'UTF-8 (Chinese) properly decoded');