Re: [Number::Format] Test failure
Brought to you by:
billward
From: Bill W. <bi...@wa...> - 2006-09-19 16:18:37
|
I think Test::Simple was written after the Number::Format tests were already done. This module is a few years old. If you want to convert them to Test::Simple I have no issue with that. On 9/19/06, Darren Chamberlain <dl...@se...> 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 > > > > -- Help bring back the San Jose Earthquakes - http://www.soccersiliconvalley.com/ |