This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade Math::BigRat from version 0.260802 to 0.260804
[perl5.git] / cpan / Math-BigRat / t / hang.t
CommitLineData
6320cdc0 1#!perl
4de3d162
T
2
3# test for bug #34584: hang in exp(1/2)
4
5use strict;
11c955be
SH
6use warnings;
7
c32198f6 8use Test::More tests => 1;
4de3d162
T
9
10use Math::BigRat;
11
12my $result = Math::BigRat->new('1/2')->bexp();
13
6320cdc0 14is("$result", "824360635350064073424325393907081785827/500000000000000000000000000000000000000",
11c955be 15 "exp(1/2) worked");
4de3d162
T
16
17##############################################################################
18# done
19
201;