Lingua-Klingon-Collate
view release on metacpan or search on metacpan
my $build = Module::Build->new(
module_name => 'Lingua::Klingon::Collate',
license => 'bsd',
requires => {
'perl' => '5.005_03',
},
build_requires => {
'Module::Build' => 0,
'Test::More' => '0.19',
'Test::Differences' => 0,
},
create_makefile_pl => 'passthrough',
);
my $failures = $build->prereq_failures();
if($failures) {
while (my ($type, $list) = each %$failures) {
while (my ($name, $hash) = each %$list) {
print "Failure for $name: $hash->{message}\n";
}
--- #YAML:1.0
name: Lingua-Klingon-Collate
version: 1.03
license: bsd
distribution_type: module
requires:
perl: 5.005_03
recommends: {}
build_requires:
Module::Build: 0
Test::Differences: 0
Test::More: 0.19
conflicts: {}
provides:
Lingua::Klingon::Collate:
file: lib/Lingua/Klingon/Collate.pm
version: 1.03
generated_by: Module::Build version 0.20
perl Build install
For compatibility, there is also a Makefile.PL provided; this is a
wrapper around Build.PL.
DEPENDENCIES
This module requires these other modules and libraries:
Test::More (v0.19 or higher)
Test::Differences
Module::Build
These modules are only required to test and install the module; no further
modules are needed at run time.
COPYRIGHT AND LICENCE
Copyright (C) 2003, 2004 by Philip Newton. All rights reserved.
Redistribution and use in source and binary forms, with or without
t/05_list.t view on Meta::CPAN
# vim:set filetype=perl sw=4 et:
#########################
use Test::More tests => 7;
use Test::Differences;
use Carp;
BEGIN {use_ok 'Lingua::Klingon::Collate', ':all'; }
eq_or_diff [ strxfrm('monghom', 'mongHom') ],
[ 'knlfnk', 'knmgnk' ],
"list output of strxfrm";
is(strxfrm('monghom', 'mongHom'), 'knlfnk', 'scalar output of strxfrm');
( run in 0.423 second using v1.01-cache-2.11-cpan-131fc08a04b )