3 # Test bpi() and bexp()
6 use Test::More tests => 8;
10 #############################################################################
12 my $pi = Math::BigFloat::bpi();
14 ok (!exists $pi->{_a}, 'A not set');
15 ok (!exists $pi->{_p}, 'P not set');
17 $pi = Math::BigFloat->bpi();
19 ok (!exists $pi->{_a}, 'A not set');
20 ok (!exists $pi->{_p}, 'P not set');
22 $pi = Math::BigFloat->bpi(10);
24 is ($pi->{_a}, 10, 'A set');
25 is ($pi->{_p}, undef, 'P not set');
27 #############################################################################
28 my $e = Math::BigFloat->new(1)->bexp();
30 ok (!exists $e->{_a}, 'A not set');
31 ok (!exists $e->{_p}, 'P not set');