Locale-Utils-PluralForms
view release on metacpan or search on metacpan
perl => '5.006',
English => 0, # dist Perl
'HTML::Entities' => 0,
'LWP::UserAgent' => 0,
Moose => 0,
'MooseX::StrictConstructor' => 0,
'namespace::autoclean' => 0,
Safe => 0, # dist Perl
},
build_requires => {
'Test::Differences' => 0,
'Test::Exception' => 0,
'Test::More' => 0, # dist Test-Simple
'Test::NoWarnings' => 0,
},
recommends => {
'Test::Pod' => '1.14',
'Test::Pod::Coverage' => '1.04',
},
auto_configure_requires => 0,
create_makefile_pl => 'traditional',
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : 2
},
"name" : "Locale-Utils-PluralForms",
"prereqs" : {
"build" : {
"requires" : {
"Test::Differences" : "0",
"Test::Exception" : "0",
"Test::More" : "0",
"Test::NoWarnings" : "0"
}
},
"runtime" : {
"recommends" : {
"Test::Pod" : "1.14",
"Test::Pod::Coverage" : "1.04"
},
---
abstract: 'Locale::Utils::PluralForms - Utils to use plural forms'
author:
- 'Steffen Winkler <steffenw at cpan.org>'
build_requires:
Test::Differences: '0'
Test::Exception: '0'
Test::More: '0'
Test::NoWarnings: '0'
dynamic_config: 1
generated_by: 'Module::Build version 0.4231, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: Locale-Utils-PluralForms
Makefile.PL view on Meta::CPAN
# Note: this file was auto-generated by Module::Build::Compat version 0.4231
require 5.006;
use ExtUtils::MakeMaker;
WriteMakefile
(
'EXE_FILES' => [],
'PREREQ_PM' => {
'English' => 0,
'Test::Exception' => 0,
'Test::Differences' => 0,
'MooseX::StrictConstructor' => 0,
'LWP::UserAgent' => 0,
'HTML::Entities' => 0,
'namespace::autoclean' => 0,
'Test::NoWarnings' => 0,
'Test::More' => 0,
'Moose' => 0,
'Safe' => 0
},
'PL_FILES' => {},
t/11_calculate_plural_forms.t view on Meta::CPAN
#!perl -T
use strict;
use warnings;
use Test::More tests => 26;
use Test::NoWarnings;
use Test::Differences;
BEGIN {
use_ok('Locale::Utils::PluralForms');
}
my $obj = Locale::Utils::PluralForms->new;
eq_or_diff(
scalar $obj->plural_forms,
'nplurals=1; plural=0',
'get plural forms default',
t/12_all_plural_forms.t view on Meta::CPAN
#!perl -T
use strict;
use warnings;
use Test::More tests => 3;
use Test::NoWarnings;
use Test::Differences;
BEGIN {
use_ok('Locale::Utils::PluralForms');
}
my $obj = Locale::Utils::PluralForms->new(
_all_plural_forms_html => <<'EOT',
<tr class="row-odd"><td>ar</td>
<td>Arabic <a class="footnote-reference" href="#f1" id="id2">[1]</a></td>
<td>nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5);</td>
</tr>
t/13_all_plural_forms_html.t view on Meta::CPAN
use warnings;
use Test::More;
$ENV{AUTHOR_TESTING}
or plan skip_all => 'Set $ENV{AUTHOR_TESTING} to a true value to run.';
SKIP: {
plan tests => 3;
require Test::NoWarnings; Test::NoWarnings->import;
use Test::Differences;
use Test::Exception;
use Locale::Utils::PluralForms;
my $obj = Locale::Utils::PluralForms->new;
lives_ok(
sub {
$obj->language('ru');
},
t/14_language.t view on Meta::CPAN
#!perl -T
use strict;
use warnings;
use Test::More tests => 6;
use Test::NoWarnings;
use Test::Differences;
use Test::Exception;
BEGIN {
use_ok('Locale::Utils::PluralForms');
}
my $obj = Locale::Utils::PluralForms->new(
all_plural_forms => {
dummy => {
english_name => 'dummy',
t/21_test_examples.t view on Meta::CPAN
#!perl
use strict;
use warnings;
use Test::More;
use Test::Differences;
use Cwd qw(getcwd chdir);
use English qw(-no_match_vars $CHILD_ERROR);
$ENV{AUTHOR_TESTING} or plan(
skip_all => 'Set $ENV{AUTHOR_TESTING} to run this test.'
);
plan(tests => 3);
my @data = (
( run in 0.650 second using v1.01-cache-2.11-cpan-131fc08a04b )