Skip Menu |

This queue is for tickets about the Math-PlanePath CPAN distribution.

Report information
The Basics
Id: 114014
Status: resolved
Priority: 0/
Queue: Math-PlanePath

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 122
Fixed in: (no value)



Subject: (round_down_pow(3) 3^64 + 1.25 exp) t/bigfloat.t test fails with Math-BigInt-1.999720
After upgrading Math-BigInt from 1.999717 to 1.999720, t/bigfloat.t test fails like this: $ prove -b t/bigfloat.t t/bigfloat.t .. # Math::BigFloat version 1.999722 # Math::BigInt version 1.999722 t/bigfloat.t .. 1/59 # +inf is inf # -inf is -inf # nan is NaN t/bigfloat.t .. 54/59 # Test 56 got: "64.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" (t/bigfloat.t at line 316) # Expected: "64" (round_down_pow(3) 3^64 + 1.25 exp) # t/bigfloat.t line 316 is: ok ($exp, 64, "round_down_pow(3) 3^64 + 1.25 exp"); # Test 59 got: "64.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" (t/bigfloat.t at line 328) # Expected: "64" (round_down_pow(3) 3^64 + 1.25 exp) # t/bigfloat.t line 328 is: ok ($exp, 64, "round_down_pow(3) 3^64 + 1.25 exp"); t/bigfloat.t .. Failed 2/59 subtests I tries to reproduce it with Math::BigFloat only by running the test against local copy of round_down_pow(), but it passed. So maybe there is some weird interaction between Math-PlanePath modules and the Math::BigFloat.
Subject: Re: [rt.cpan.org #114014] (round_down_pow(3) 3^64 + 1.25 exp) t/bigfloat.t test fails with Math-BigInt-1.999720
Date: Fri, 29 Apr 2016 15:53:28 +1000
To: "Petr Pisar via RT" <bug-Math-PlanePath [...] rt.cpan.org>
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
"Petr Pisar via RT" <bug-Math-PlanePath@rt.cpan.org> writes: Show quoted text
> > t/bigfloat.t .. 54/59 # Test 56 got: "64.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" (t/bigfloat.t at line 316)
Thanks. I compared with eq but it's no longer an integer so need ==. I uploaded a version 123 which should be right. -- A new life awaits you in the Off-World colonies. A chance to begin again in a golden land of opportunity and adventure.
RT-Send-CC: user42_kevin [...] yahoo.com.au
On 2016-04-29 02:00:19, user42_kevin@yahoo.com.au wrote: Show quoted text
> "Petr Pisar via RT" <bug-Math-PlanePath@rt.cpan.org> writes:
> > > > t/bigfloat.t .. 54/59 # Test 56 got: > > "64.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" > > (t/bigfloat.t at line 316)
> > Thanks. I compared with eq but it's no longer an integer so need ==. > I uploaded a version 123 which should be right.
This version fails with Math::BigInt version 1.999719. Maybe PREREQ_PM has to be adjusted.
Subject: Re: [rt.cpan.org #114014] (round_down_pow(3) 3^64 + 1.25 exp) t/bigfloat.t test fails with Math-BigInt-1.999720
Date: Sun, 01 May 2016 15:52:56 +1000
To: "Slaven_Rezic via RT" <bug-Math-PlanePath [...] rt.cpan.org>
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
"Slaven_Rezic via RT" <bug-Math-PlanePath@rt.cpan.org> writes: Show quoted text
> > This version fails with Math::BigInt version 1.999719.
Ah 719 is the same problem as 718 BigFloat int() which you reported. I didn't improve the error message yet. I might skip tests. Show quoted text
> Maybe PREREQ_PM has to be adjusted.
I don't want to demand newer, but a recommends could be ok. Or if there's a way to express certain individual versions are not-recommended ...
On 2016-05-01 02:01:21, user42_kevin@yahoo.com.au wrote: Show quoted text
> "Slaven_Rezic via RT" <bug-Math-PlanePath@rt.cpan.org> writes:
> > > > This version fails with Math::BigInt version 1.999719.
> > Ah 719 is the same problem as 718 BigFloat int() which you reported. > I didn't improve the error message yet. I might skip tests. >
> > Maybe PREREQ_PM has to be adjusted.
> > I don't want to demand newer, but a recommends could be ok. Or if > there's a way to express certain individual versions are not-recommended > ...
A possible technique (untested): my $min_math_bigint_version = 0; if (eval { require Math::BigInt; $Math::BigInt::VERSION eq "1.999719" }) { $min_math_bigint_version = "1.999720"; } ... PREREQ_PM => { ... "Math::BigInt" => $min_math_bigint_version, ... }
Subject: Re: [rt.cpan.org #114014] (round_down_pow(3) 3^64 + 1.25 exp) t/bigfloat.t test fails with Math-BigInt-1.999720
Date: Mon, 02 May 2016 15:59:03 +1000
To: "Slaven_Rezic via RT" <bug-Math-PlanePath [...] rt.cpan.org>
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
"Slaven_Rezic via RT" <bug-Math-PlanePath@rt.cpan.org> writes: Show quoted text
> > if (eval { require Math::BigInt; $Math::BigInt::VERSION eq "1.999719" }) { > $min_math_bigint_version = "1.999720"; > } > PREREQ_PM => { > "Math::BigInt" => $min_math_bigint_version,
Hmm. Maybe. Or just a warning message for humans as don't want bigint to get into META, or debian auto-detected dependencies, etc.