Acme-MetaSyntactic-nethack
view release on metacpan or search on metacpan
t/author/consistent_version_numbers.t view on Meta::CPAN
#!perl
# Taken from http://www.chrisdolan.net/talk/index.php/2005/11/14/private-regression-tests/.
use warnings;
use strict;
use File::Find;
use File::Slurp;
use Test::More qw(no_plan);
my $last_version = undef;
find({wanted => \&check_version, no_chdir => 1}, 'blib');
if (! defined $last_version) {
fail('Failed to find any files with $VERSION');
}
sub check_version {
# $_ is the full path to the file
return if (! m{blib/script/}xms && ! m{\.pm \z}xms);
my $content = read_file($_);
( run in 3.243 seconds using v1.01-cache-2.11-cpan-d80b1682f3f )