Skip Menu |

This queue is for tickets about the Module-Info CPAN distribution.

Report information
The Basics
Id: 27114
Status: resolved
Priority: 0/
Queue: Module-Info

People
Owner: NEILB [...] cpan.org
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

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



Subject: test suite broken since version.pm 0.7203 or so
Trailing zeroes in floating point numbers... this was re-designed in version.pm 0.72xx which was released around the 18th of April. Since then all my tests for Module::Info break and the test spits out: t/Module-Info............# Failed test (t/Module-Info.t at line 87) # got: '0.3' # expected: '0.300' # Looks like you failed 1 tests of 59. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 13 Failed 1/59 tests, 98.31% okay You are using is() for version comparison there which is probably always a bad idea because it is a string compare. Cheeers,
On Mon May 14 00:13:26 2007, ANDK wrote: Show quoted text
> Trailing zeroes in floating point numbers... this was re-designed in > version.pm 0.72xx which was released around the 18th of April.
<anip> Show quoted text
> You are using is() for version comparison there which is probably always > a bad idea because it is a string compare.
For now I just added (another) special case to the test file. Leaving the ticket open pending the correct fix (probably just using ==, but I need to check version.pm documentation). Thanks! Mattia
Closing this ticket, as it seems to have been fixed a good while back.