1# -*- mode: perl; -*- 2 3# see if using Math::BigInt and Math::BigFloat works together nicely. 4# all use_lib*.t should be equivalent 5 6use strict; 7use warnings; 8use lib 't'; 9 10use Test::More tests => 2; 11 12use Math::BigInt; # loads "Calc" 13use Math::BigFloat lib => 'BareCalc'; # ignores "BareCalc" 14 15is(Math::BigInt->config('lib'), 'Math::BigInt::Calc', 16 "Math::BigInt->config('lib')"); 17 18is(Math::BigFloat->new(123)->badd(123), 246, 19 'Math::BigFloat->new(123)->badd(123)'); 20