diff options
author | Peter John Acklam <pjacklam@online.no> | 2011-01-16 14:21:38 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-01-16 14:21:38 -0800 |
commit | 116f6d6bd0cd2c8f6918d07b06ab4cbda0a122bc (patch) | |
tree | 0fb58e968bfc9277339e6582136523d255331a4d /mg.h | |
parent | d8a75b5a439e75bb458307d35cc1e66f99c4333b (diff) | |
download | perl-116f6d6bd0cd2c8f6918d07b06ab4cbda0a122bc.tar.gz |
[perl #82098] Fix RT 61543 and remaining part of RT 63237
Extend bmodpow() to handle negative numbers.
- dist/Math-BigInt/lib/Math/BigInt.pm: Fix bmodpow() code and make the
documentation style more like that of other methods.
- dist/Math-BigInt/t/bigintpm.inc: Edit test results so they match new
behaviour, i.e., where earlier a NaN was returned, there are now
some cases where an integer is returned, since bmodpow() now also
handles negative numbers. Also include test cases from RT 63237. The
tests themselves have all been verified to be correct using other
software.
- dist/Math-BigRat/t/bigratpm.inc: Fix test case so it matches the new
behaviour of Math::BigInt->bmodinv(). Math::BigRat->bmodinv() only
handles integers, and is essentially just a front-end to
Math::BigInt->bmodinv().
- dist/Math-BigInt/t/bare_mbi.t: Increment test count.
- dist/Math-BigInt/t/bigintpm.t: Increment test count.
- dist/Math-BigInt/t/sub_mbi.t: Increment test count.
Diffstat (limited to 'mg.h')
0 files changed, 0 insertions, 0 deletions