File: 03000_misc_unihan.t

package info (click to toggle)
libtext-unidecode-perl 1.30-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,236 kB
  • sloc: perl: 3,878; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- coding:utf-8; mode:CPerl -*-
use 5.8.0;
use strict; use warnings; use Test; use utf8;
print q[# //Time-stamp: "2014-07-04 02:17:29 MDT sburke@cpan.org"], "\n";

BEGIN {plan
                tests =>   4
;}

use Text::Unidecode;
print "# Text::Unidecode version $Text::Unidecode::VERSION\n";
print "# Checking basic operations with Unicode characters...\n";

ok 1;
binmode($_, ":utf8") for (*STDOUT, *STDIN, *STDERR);

ok( "\x{4e00}", "δΈ€" );
ok( unidecode("\x{4e00}"), "Yi " );

ok 1;

# End