Upgrade to Math::BigInt 1.48.
[p5sagit/p5-mst-13.2.git] / t / lib / Math / BigInt / BareCalc.pm
1 package Math::BigInt::BareCalc;
2
3 use 5.005;
4 use strict;
5 # use warnings; # dont use warnings for older Perls
6
7 require Exporter;
8 use vars qw/@ISA $VERSION/;
9 @ISA = qw(Exporter);
10
11 $VERSION = '0.02';
12
13 # Package to to test Bigint's simulation of Calc
14
15 # uses Calc, but only features the strictly necc. methods.
16
17 use Math::BigInt::Calc v0.17;
18
19 BEGIN
20   {
21   foreach (qw/  base_len new zero one two copy str num add sub mul div inc dec
22                 acmp len digit zeros
23                 is_zero is_one is_odd is_even is_one check
24                 /)
25     {
26     my $name  = "Math::BigInt::Calc::_$_";
27     no strict 'refs';
28     *{"Math::BigInt::BareCalc::_$_"} = \&$name;
29     }
30   }
31
32 # catch and throw away
33 sub import { }
34
35 1;