This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Math-BigInt to CPAN version 1.999811
[perl5.git] / cpan / Math-BigInt / t / const_mbf.t
1 #!perl
2
3 # test Math::BigFloat constants alone (w/o Math::BigInt loading)
4
5 use strict;
6 use warnings;
7
8 use Test::More tests => 2;
9
10 use Math::BigFloat ':constant';
11
12 is(1.0 / 3.0, '0.3333333333333333333333333333333333333333',
13    "1.0 / 3.0 = 0.3333333333333333333333333333333333333333");
14
15 # Math::BigInt was not loaded with ':constant', so only floats are handled
16 is(ref(2 ** 2), '', "2 ** 2 is a scalar");