This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate perlio:
[perl5.git] / lib / Math / BigInt / t / use_lib1.t
CommitLineData
56b9c951
JH
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
5
6use strict;
7use Test;
8
9BEGIN
10 {
11 $| = 1;
12 chdir 't' if -d 't';
13 unshift @INC, '../lib'; # for running manually
14 unshift @INC, 'lib';
15 print "# INC = @INC\n";
16 plan tests => 2;
17 }
18
19use Math::BigFloat lib => 'BareCalc';
20
21ok (Math::BigInt->config()->{lib},'Math::BigInt::BareCalc');
22
23ok (Math::BigFloat->new(123)->badd(123),246);
24