Lingua-Klingon-Segment

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN


my $build = Module::Build->new(
    module_name => 'Lingua::Klingon::Segment',
    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";
    }

META.yml  view on Meta::CPAN

--- #YAML:1.0
name: Lingua-Klingon-Segment
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::Segment:
    file: lib/Lingua/Klingon/Segment.pm
    version: 1.03
generated_by: Module::Build version 0.20

README  view on Meta::CPAN

   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/02_syllabify.t  view on Meta::CPAN

# vim:set filetype=perl sw=4 et:

#########################

use Test::More tests => 31;
use Test::Differences;
use Carp;

BEGIN {use_ok 'Lingua::Klingon::Segment', 'syllabify'; }

eq_or_diff [ syllabify 'monghom' ],
           [ qw(mon ghom)        ],
           'monghom';

eq_or_diff [ syllabify 'mongHom' ],
           [ qw(mong Hom)        ],

t/03_spell.t  view on Meta::CPAN

# vim:set filetype=perl sw=4 et:

#########################

use Test::More tests => 31;
use Test::Differences;
use Carp;

BEGIN {use_ok 'Lingua::Klingon::Segment', 'spell'; }

eq_or_diff [ spell 'monghom'  ],
           [ qw(m o n gh o m) ],
           'monghom';

eq_or_diff [ spell 'mongHom'  ],
           [ qw(m o ng H o m) ],



( run in 0.462 second using v1.01-cache-2.11-cpan-131fc08a04b )