Skip Menu |

This queue is for tickets about the DateTime-Util-Calc CPAN distribution.

Report information
The Basics
Id: 24028
Status: open
Priority: 0/
Queue: DateTime-Util-Calc

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

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



Subject: intermittent test failure in 04-bigfloat.t
% while true; do date ./Build test sleep 5 done | tee make.out If I run make test in a loop like the above, I soon get a failing test. Right now I got this: t/04-bigfloat.... # Failed test '0.054630 == 0.054630' # at t/04-bigfloat.t line 20. # Looks like you failed 1 test of 6. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 4 Failed 1/6 tests, 83.33% okay Every time the actual number in the failing test changes but the numbers left and right of the equals operator are always the same. Thanks,
On Thu Dec 21 03:51:12 2006, ANDK wrote Show quoted text
> the numbers > left and right of the equals operator are always the same.
I just realize that the last digit is always a zero.
I've looked at the test itself and the fix seems obvious. I've uploaded a patch to CPAN as ANDK/patches/DateTime-Util-Calc-0.11-ANDK-01.patch.gz As it is short I also paste it here: --- DateTime-Util-Calc-0.11-FPRnzU/t/04-bigfloat.t~ 2006-07-16 13:12:46.000000000 +0200 +++ DateTime-Util-Calc-0.11-FPRnzU/t/04-bigfloat.t 2006-12-24 06:33:30.000000000 +0100 @@ -17,7 +17,7 @@ ok( !ref($downgraded) ); # for some reason "eq" here works, but not "==" $downgraded = sprintf('%0.6f', $downgraded); -ok( ($downgraded + 0) eq $x, "$downgraded == $x" ); +ok( $downgraded eq $x, "$downgraded eq $x" ); $bf = bigfloat($x); ok( ref($bf) );