File: 07script.t

package info (click to toggle)
libdatetime-locale-perl 1%3A0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 7,816 kB
  • ctags: 8,274
  • sloc: xml: 22,344; perl: 1,565; makefile: 9
file content (24 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use warnings;
use utf8;

use Test::More;

BEGIN {
    if ( $] <= 5.008 ) {
        plan skip_all => 'These tests require Perl 5.8.0+';
    }
    else {
        plan tests => 4;
    }
}

use DateTime::Locale;

my $loc = DateTime::Locale->load('zh_Hans_SG');

is( $loc->script,        'Simplified Han', 'check script' );
is( $loc->native_script, '简体中文',   'check native_script' );
is( $loc->script_id,     'Hans',           'check script_id' );

is( $loc->territory_id, 'SG', 'check territory_id' );