1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
# -*- mode: perl; -*-
use strict; # restrict unsafe constructs
use warnings; # enable optional warnings
use Test::More tests => 3;
BEGIN {
use_ok('Math::BigInt');
use_ok('Math::BigFloat');
use_ok('Math::BigRat');
};
my @mods = ('Math::BigInt',
'Math::BigFloat',
'Math::BigRat',
'Math::BigInt::Lib',
'Math::BigInt::Calc',
);
diag("");
diag("Testing with Perl $], $^X");
diag("");
diag(sprintf("%12s %s\n", 'Version', 'Module'));
diag(sprintf("%12s %s\n", '-------', '------'));
for my $mod (@mods) {
my $ver = $mod -> VERSION();
my $str = defined($ver) ? $ver : 'undef';
diag(sprintf("%12s %s\n", $str, $mod));
}
diag("");
|