Skip Menu |

This queue is for tickets about the Net-DBus CPAN distribution.

Report information
The Basics
Id: 37707
Status: resolved
Priority: 0/
Queue: Net-DBus

People
Owner: Nobody in particular
Requestors: melazyboy [...] gmail.com
Cc:
AdminCc:

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



Subject: Failing test ./t/15
slight change for more verboseness 67 ok($iter->get_double() == 1.424141, "double got " . $iter->get_double() ); With 5.8 # prove -b --exec '/usr/bin/perl' ./t/15-message.t Result: PASS With 5.10 # prove -b ./t/15-message.t ./t/15-message....1/33 # Failed test 'double got 1.4241410000000001' # at ./t/15-message.t line 67. Not sure how to solve this one... or how important this test is..
On Tue Jul 15 17:43:22 2008, EvanCarroll wrote: Show quoted text
> slight change for more verboseness > 67 ok($iter->get_double() == 1.424141, "double got " . > $iter->get_double() );
Show quoted text
> ./t/15-message....1/33 > # Failed test 'double got 1.4241410000000001' > # at ./t/15-message.t line 67. > > Not sure how to solve this one... or how important this test is..
The problem is that we shouldn't really be doing a test for equality, because floating point arithmetic isn't an exact science. We need to change it to test for equality +/- some small percentage, to take account of floating double precision.
The 1.0.0 release includes a fix for this problem, using a range comparison rather than exact equality test.