Skip to content

Commit

Permalink
modules test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-kimoto committed Oct 8, 2013
1 parent 71d6467 commit ab190fd
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
11 changes: 6 additions & 5 deletions t/age_string.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env perl
use Test::More 'no_plan';

use Test::More;
use FindBin;
use lib "$FindBin::Bin/../mojo/lib";
use lib "$FindBin::Bin/../lib";
use lib "$FindBin::Bin/../extlib/lib/perl5";

use Gitprep::Git;

Expand Down Expand Up @@ -34,8 +37,6 @@ my @cases = (
{ stimulus => 2 * 365 * 24 * 60 * 60 + 1, expected => '2 years ago' },
);

plan ( tests => scalar @cases );

for ( @cases ) {
is ( Gitprep::Git->_age_string ( $_->{stimulus} ), $_->{expected}, "$_->{stimulus} sec ~ \"$_->{expected}\"" );
is ( Gitprep::Git->new->_age_string ( $_->{stimulus} ), $_->{expected}, "$_->{stimulus} sec ~ \"$_->{expected}\"" );
}
2 changes: 0 additions & 2 deletions t/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ use lib "$FindBin::Bin/../mojo/lib";
use lib "$FindBin::Bin/../lib";
use lib "$FindBin::Bin/../extlib/lib/perl5";

use Test::Mojo;

use_ok('Gitprep');
31 changes: 31 additions & 0 deletions t/modules.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
use Test::More 'no_plan';

use FindBin;
use lib "$FindBin::Bin/../mojo/lib";
use lib "$FindBin::Bin/../lib";
use lib "$FindBin::Bin/../extlib/lib/perl5";

use_ok('DBI');
use_ok('DBD::SQLite');
use_ok('Object::Simple');
use_ok('DBIx::Custom');
use_ok('Config::Tiny');
use_ok('Time::HiRes');
use_ok('Test::Simple');
use_ok('Validator::Custom');
use_ok('DBIx::Connector');
use_ok('Module::Build');
use_ok('Test::Harness');
use_ok('Module::Metadata');
use_ok('Perl::OSType');
use_ok('ExtUtils::CBuilder');
use_ok('File::Spec');
use_ok('IPC::Cmd');
use_ok('Locale::Maketext::Simple');
use_ok('Module::Load::Conditional');
use_ok('Module::Load');
use_ok('Params::Check');
use_ok('ExtUtils::ParseXS');
use_ok('Test::MockModule');
use_ok('Digest::SHA');
use_ok('Text::Markdown::Discount');

0 comments on commit ab190fd

Please sign in to comment.