From c510e33d30368bc5440f1651f6b31f73d2354eba Mon Sep 17 00:00:00 2001 From: Florian Ragwitz Date: Thu, 2 Sep 2010 23:11:26 +0200 Subject: blead is upstream for Math-BigInt --- dist/Math-BigInt/t/req_mbfi.t | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dist/Math-BigInt/t/req_mbfi.t (limited to 'dist/Math-BigInt/t/req_mbfi.t') diff --git a/dist/Math-BigInt/t/req_mbfi.t b/dist/Math-BigInt/t/req_mbfi.t new file mode 100644 index 0000000000..b2b655e657 --- /dev/null +++ b/dist/Math-BigInt/t/req_mbfi.t @@ -0,0 +1,32 @@ +#!/usr/bin/perl -w + +# check that simple requiring BigFloat and then binf() works + +use strict; +use Test; + +BEGIN + { + $| = 1; + # to locate the testing files + my $location = $0; $location =~ s/req_mbfi.t//i; + unshift @INC, qw(../lib); # to locate the modules + if (-d 't') + { + chdir 't'; + require File::Spec; + unshift @INC, File::Spec->catdir(File::Spec->updir, $location); + } + else + { + unshift @INC, $location; + } + print "# INC = @INC\n"; + + plan tests => 1; + } + +require Math::BigFloat; my $x = Math::BigFloat->binf(); ok ($x,'inf'); + +# all tests done + -- cgit v1.2.1