Re: [Number::Format] Test failure
Brought to you by:
billward
From: Jonas B. N. <jo...@gm...> - 2006-09-19 18:22:19
|
Hi Darren, We have the patch for the failling tests handy, we just need to patch and release, it can be obtained from rt.cpan.org https://rt.cpan.org/Ticket/Display.html?id=21382 jonasbn On 19/09/2006, at 14.10, Darren Chamberlain wrote: > The latest CVS has test failures in t/format_price.t. It appears that > the tests are expecting Number::Format to emit a space after the > currency symbol: > > print "not " unless ($usd->format_price(123456.51) eq 'USD > 123,456.51'); > print "ok 2\n"; > > In reality, there is no space: > > $ perl -Mblib -MNumber::Format -wle '$f = Number::Format->new(- > int_curr_symbol => "USD"); print $f->format_price(123456.51)' > USD123,456.51 > > Is this an error in the tests or in the output from format_price? > > Also, is there a reason the tests are not using Test::Simple? > > (darren) > > -- > I have had my solutions for a long time; but I do not yet know how I > am to arrive at them. > -- Karl F. Gauss > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Number-Format-Developers mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/number-format-developers |