Upgrade to Math::BigInt v1.65, Math::BigRat v0.10,
[p5sagit/p5-mst-13.2.git] / t / lib / Math / BigInt / BareCalc.pm
CommitLineData
394e6ffb 1package Math::BigInt::BareCalc;
2
3use 5.005;
4use strict;
5# use warnings; # dont use warnings for older Perls
6
7require Exporter;
8use 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
990fb837 17use Math::BigInt::Calc '0.33';
394e6ffb 18
19BEGIN
20 {
dca3595e 21 no strict 'refs';
394e6ffb 22 foreach (qw/ base_len new zero one two copy str num add sub mul div inc dec
23 acmp len digit zeros
24 is_zero is_one is_odd is_even is_one check
61f5c3f5 25 to_small to_large
394e6ffb 26 /)
27 {
28 my $name = "Math::BigInt::Calc::_$_";
394e6ffb 29 *{"Math::BigInt::BareCalc::_$_"} = \&$name;
30 }
990fb837 31 print "# BareCalc using Calc v$Math::BigInt::Calc::VERSION\n";
394e6ffb 32 }
33
34# catch and throw away
35sub import { }
36
371;