Locale-MO-File
view release on metacpan or search on metacpan
t/22_test_examples_utf-8.t view on Meta::CPAN
#!perl
use strict;
use warnings;
use utf8;
use Test::More;
use Test::Differences;
use Cwd qw(getcwd chdir);
use Encode qw(decode_utf8);
use English qw(-no_match_vars $CHILD_ERROR);
$ENV{AUTHOR_TESTING}
or plan skip_all => 'Set $ENV{AUTHOR_TESTING} to run this test.';
my @data = (
{
test => '13_little_endian_utf-8',
path => 'example',
script => '-I../lib -T 13_little_endian_utf-8.pl',
result => <<'EOT',
$messages_result = [
{
msgid => '',
msgstr => 'MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Plural-Forms: nplurals=2; plural=n != 1;
'
},
{
msgid => '11ë',
msgstr => '12ü'
},
{
msgctxt => '21ä',
msgid => '22ë',
msgstr => '23ü'
},
{
msgid => '31ë',
msgid_plural => '32ö',
msgstr_plural => [
'33ü',
'34ü'
]
},
{
msgctxt => '41ä',
msgid => '42ë',
msgid_plural => '43ö',
msgstr_plural => [
'44ü',
'45ü'
]
}
];
EOT
},
{
test => '14_little_endian_fh_utf-8',
path => 'example',
script => '-I../lib -T 14_little_endian_fh_utf-8.pl',
result => <<'EOT',
$messages_result = [
{
msgid => '',
msgstr => 'MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
( run in 2.353 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )