Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the load tests, and show Business::ISBN::Data details
- Loading branch information
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
BEGIN { @classes = map { "Business::ISBN$_" } '', '10', '13' } | ||
use Test::More; | ||
|
||
use Test::More tests => scalar @classes; | ||
|
||
foreach my $class ( @classes ) | ||
{ | ||
print "Bail out!\n" unless use_ok( $class ); | ||
my @classes = ( | ||
'Business::ISBN', | ||
map { "Business::ISBN$_" } '', '10', '13' | ||
); | ||
|
||
|
||
foreach my $class ( @classes ) { | ||
BAIL_OUT("Bail out! $class could not be loaded: $@") | ||
unless use_ok( $class ); | ||
} | ||
|
||
diag( "Business::ISBN::Data version: " . Business::ISBN::Data->VERSION ); | ||
diag( "Business::ISBN::Data location: " . $INC{'Business/ISBN/Data.pm'} ); | ||
|
||
done_testing(); |