File: 07script.t

package info (click to toggle)
libdatetime-locale-perl 1%3A1.02-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 13,540 kB
  • sloc: perl: 1,718; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 459 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
use strict;
use warnings;
use utf8;

use Test::More;

use DateTime::Locale;

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

my $loc = DateTime::Locale->load('zh-Hans-SG');

is( $loc->script,        'Simplified', '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' );

done_testing();