Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: pjacklam [...] cpan.org
AdminCc:

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



CC: pjacklam [...] cpan.org
Subject: Tests fail (probably only with latest Math::BigInt)
See subject. Failing test output starts with: ... # Math::BigFloat version 1.999718 # Math::BigInt version 1.999718 # +inf is inf # -inf is -inf # nan is NaN # Test 26 got: "" (t/bigfloat.t at line 208) # Expected: "1" # t/bigfloat.t line 208 is: ok (round_nearest(Math::BigFloat->new('-.75')) == -1, 1); # Test 31 got: "" (t/bigfloat.t at line 214) # Expected: "1" # t/bigfloat.t line 214 is: ok (round_nearest(Math::BigFloat->new('1.5')) == 2, 1); # Test 32 got: "" (t/bigfloat.t at line 215) # Expected: "1" # t/bigfloat.t line 215 is: ok (round_nearest(Math::BigFloat->new('1.75')) == 2, 1); # Test 34 got: "" (t/bigfloat.t at line 223) # Expected: "1" # t/bigfloat.t line 223 is: ok (floor(Math::BigFloat->new('-.75')) == -1, 1); # Test 35 got: "" (t/bigfloat.t at line 224) ...
Subject: Re: [rt.cpan.org #113960] Tests fail (probably only with latest Math::BigInt)
Date: Tue, 26 Apr 2016 16:47:22 +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
> > # Test 26 got: "" (t/bigfloat.t at line 208) > # Expected: "1" > # t/bigfloat.t line 208 is: ok (round_nearest(Math::BigFloat->new('-.75')) == -1, 1);
Thanks. I think it's a bug of BigFloat. I started a ticket https://rt.cpan.org/Ticket/Display.html?id=113992 I might make my test output more indicative of the problem, but I don't think I can avoid in my code as such. -- The sigfile finance for the layman series: "Ore at grass" -- a pile of dirt which a mining company wasted shareholders' money digging up. If there's a crazy minerals boom then it might be worth processing.
I am sorry for the inconvenience. I fixed the bug as quickly as I could. This bug was fixed in Math-BigInt v1.999720.