Khaaaaan! Change 34230 wasn't right. The tests all passed because I
[p5sagit/p5-mst-13.2.git] / lib / bignum / t / bii_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';
d98d5fa0 14 plan tests => 5;
fade31f0 15 }
16
d98d5fa0 17use bigint qw/e PI bpi bexp/;
fade31f0 18
19is (e, "2", 'e');
20is (PI, "3", 'PI');
21
d98d5fa0 22is (bexp(1,10), "2", 'e');
23is (bexp(3,10), "20", 'e');
24is (bpi(10), "3", 'PI');