summaryrefslogtreecommitdiff
path: root/dist/Math-BigInt/t/use_lib1.t
blob: d31881451c0161637ee73812d83a1b2c409eb25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl -w

# see if using Math::BigInt and Math::BigFloat works together nicely.
# all use_lib*.t should be equivalent

use strict;
use Test;

BEGIN
  {
  unshift @INC, 't';
  plan tests => 2;
  } 

use Math::BigFloat lib => 'BareCalc';

ok (Math::BigInt->config()->{lib},'Math::BigInt::BareCalc');

ok (Math::BigFloat->new(123)->badd(123),246);