Skip Menu |

This queue is for tickets about the RRDTool-OO CPAN distribution.

Report information
The Basics
Id: 97322
Status: resolved
Priority: 0/
Queue: RRDTool-OO

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

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



Subject: Fails on nvsize!=8 due to string comparison on floating point number
As per subject. Sample fail report: http://www.cpantesters.org/cpan/report/45b2a950-fdbc-11e3-826e-69850a370852 Some tests are written with a 32bit system in mind. Perl can have long double and 16bit floats, so the tests need to be written with some epsilon tolerance for floating point results. I would suggest to deploy Test::Number::Delta for the tests, it provides a convenient interface. Thanks && Regards, (Disclaimer: this was discovered by statistical analysis, I'm not speaking as a user)
Thanks for reporting this, I've changed the tests to compare the values rounded to 3 decimal points: https://github.com/mschilli/rrdtool-oo-perl/commit/33a2f992ba037c19bdfb8f59d6916ed49e44737e and pushed RRDTool::OO 0.35 to CPAN.