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

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

use strict;
use Test;

BEGIN
  {
  plan tests => 2;
  } 

use Math::BigFloat ':constant';

ok (1.0 / 3.0, '0.3333333333333333333333333333333333333333');

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