Integrate perlio:
[p5sagit/p5-mst-13.2.git] / lib / Math / BigInt / t / use_lib4.t
CommitLineData
56b9c951 1#!/usr/bin/perl -w
2
3# see if using Math::BigInt and Math::BigFloat works together nicely.
4# all use_lib*.t should be equivalent, except this, since the later overrides
5# the former lib statement
6
7use strict;
8use Test;
9
10BEGIN
11 {
12 $| = 1;
13 chdir 't' if -d 't';
14 unshift @INC, '../lib'; # for running manually
15 unshift @INC, 'lib';
16 plan tests => 2;
17 }
18
19use Math::BigInt lib => 'BareCalc';
20use Math::BigFloat lib => 'Calc';
21
22ok (Math::BigInt->config()->{lib},'Math::BigInt::Calc');
23
24ok (Math::BigFloat->new(123)->badd(123),246);
25