blob: cf4d65c678bf71250de6d497f4ce6799b5897f53 (
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 for bug #34584: hang in exp(1/2)
use strict;
use Test::More tests => 1;
use Math::BigRat;
my $result = Math::BigRat->new('1/2')->bexp();
is ("$result", "9535900335500879457687887524133067574481/5783815921445270815783609372070483523265",
"exp(1/2) worked");
##############################################################################
# done
1;
|