Move Math::BigInt from ext/ to cpan/
[p5sagit/p5-mst-13.2.git] / cpan / Math-BigInt / t / 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
20e2035c 11$VERSION = '0.05';
9b924220 12
13sub api_version () { 1; }
394e6ffb 14
15# Package to to test Bigint's simulation of Calc
16
17# uses Calc, but only features the strictly necc. methods.
18
20e2035c 19use Math::BigInt::Calc '0.51';
394e6ffb 20
21BEGIN
22 {
dca3595e 23 no strict 'refs';
9b924220 24 foreach (qw/
25 base_len new zero one two ten copy str num add sub mul div mod inc dec
20e2035c 26 acmp alen len digit zeros
9b924220 27 rsft lsft
28 fac pow gcd log_int sqrt root
29 is_zero is_one is_odd is_even is_one is_two is_ten check
7b29e1e6 30 as_hex as_bin as_oct from_hex from_bin from_oct
9b924220 31 modpow modinv
32 and xor or
33 /)
394e6ffb 34 {
35 my $name = "Math::BigInt::Calc::_$_";
394e6ffb 36 *{"Math::BigInt::BareCalc::_$_"} = \&$name;
37 }
990fb837 38 print "# BareCalc using Calc v$Math::BigInt::Calc::VERSION\n";
394e6ffb 39 }
40
41# catch and throw away
42sub import { }
43
441;