1#!perl 2 3use strict; 4use warnings; 5 6use Test::More tests => 4; 7 8my @CLASSES = qw/Math::BigInt Math::BigFloat/; 9 10use bignum p => '12'; 11 12foreach my $class (@CLASSES) { 13 is($class->precision(), 12, "$class precision = 12"); 14} 15 16bignum->import(p => '42'); 17 18foreach my $class (@CLASSES) { 19 is($class->precision(), 42, "$class precision = 42"); 20} 21