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