This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to Math::BigInt 1.77
[perl5.git] / lib / Math / BigInt / t / req_mbf0.t
CommitLineData
990fb837
RGS
1#!/usr/bin/perl -w
2
3# check that simple requiring BigFloat and then bzero() works
4
5use strict;
233f7bc0 6use Test::More;
990fb837
RGS
7
8BEGIN
9 {
10 $| = 1;
11 # to locate the testing files
12 my $location = $0; $location =~ s/req_mbf0.t//i;
13 if ($ENV{PERL_CORE})
14 {
15 # testing with the core distribution
16 @INC = qw(../t/lib);
17 }
18 unshift @INC, qw(../lib); # to locate the modules
19 if (-d 't')
20 {
21 chdir 't';
22 require File::Spec;
23 unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
24 }
25 else
26 {
27 unshift @INC, $location;
28 }
29 print "# INC = @INC\n";
30
31 plan tests => 1;
32 }
33
233f7bc0
T
34require Math::BigFloat;
35my $x = Math::BigFloat->bzero(); $x++;
36is ($x,1, '$x is 1');
990fb837
RGS
37
38# all tests done
39