Re: RFC: bigint et. al exporting PI method? [PATCH]
[p5sagit/p5-mst-13.2.git] / lib / bignum / t / bir_e_pi.t
CommitLineData
fade31f0 1#!/usr/bin/perl -w
2
3###############################################################################
4# test for e() and PI() exports
5
6use Test::More;
7use strict;
8
9BEGIN
10 {
11 $| = 1;
12 chdir 't' if -d 't';
13 unshift @INC, '../lib';
14 plan tests => 4;
15 }
16
17use bigrat qw/e PI/;
18
19is (e, "2.718281828459045235360287471352662497757", 'e');
20is (PI, "3.141592653589793238462643383279502884197", 'PI');
21
22is (e(10), "2.718281828", 'e');
23is (PI(10), "3.141592654", 'PI');