Factors: Old Math::Prime::Util:all_factors not giving all factors.
Math::Prime::Util:all_factors version 0.26 (which we have in the dist.ini) had a different behavior from 0.34. So the tests failed. This should fix it.master
parent
024712ff7c
commit
14fca3ada6
2
dist.ini
2
dist.ini
|
@ -44,7 +44,7 @@ Lingua::EN::Numbers::Ordinate = 1.02
|
|||
; Hashes
|
||||
Digest::SHA = 5.82
|
||||
; Factors
|
||||
Math::Prime::Util = 0.26
|
||||
Math::Prime::Util = 0.34
|
||||
Games::Sudoku::Component = 0.02
|
||||
Data::RandomPerson = 0.4
|
||||
URI::Escape = 3.31
|
||||
|
|
|
@ -20,7 +20,7 @@ attribution github => [ 'https://github.com/austinheimark', 'austin_heimark' ];
|
|||
handle remainder => sub {
|
||||
return unless /^\d+$/;
|
||||
my @factors = all_factors($_);
|
||||
return "Factors of $_: 1 @factors $_";
|
||||
return "Factors of $_: @factors";
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
Loading…
Reference in New Issue