summaryrefslogtreecommitdiff
path: root/dist/Math-BigInt/t/const_mbf.t
blob: 84f7a8cf995c366a564f1a9c36dbad4286ef91c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl -w

# test BigFloat constants alone (w/o BigInt loading)

use strict;
use Test::More tests => 2;

use Math::BigFloat ':constant';

is (1.0 / 3.0, '0.3333333333333333333333333333333333333333');

# BigInt was not loaded with ':constant', so only floats are handled
is (ref(2 ** 2),'');