UK NumberFormat tests

Andrew John Hughes gnu_andrew@member.fsf.org
Mon Dec 20 01:24:00 GMT 2004


On Mon, 2004-12-20 at 01:09, Andrew John Hughes wrote:
> Attached are is an initial test case for java.util.NumberFormat.
> With Classpath, it immediately shows up a bug: broken handling of long
> arguments.  Currency formatting is also now broken, due to Michael's recent changes
> to the locales; although he's done some excellent work in getting the locale
> stuff actually usable, we've (temporarily) lost the currency symbols, so
> everything is now in dollars.  
> 
> All this really needs, minimally, is something to convert
> international currency codes into symbols.  For a true conformant implementation,
> the representation of each locale, respective of every other, needs to be known
> (see java.util.Currency).
> 
> The current test looks at the UK locale (so I could check the answers mentally without
> having to rely on either the test or the library classes).  Really, we should be
> able to generate tests of this style from the locale data.
> 
> Changelog entry:
> 
> 2004-12-19  Andrew John Hughes  <gnu_andrew@member.fsf.org>
> 
> 	* gnu/testlet/java/text/NumberFormat/UK.java
> 	Added simple tests for normal, integer, currency and percentage
> 	instances for the UK locale.

Whoops! Forgot the patch.
-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

No software patents in Europe -- http://nosoftwarepatents.com

"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman

"We've all been part of the biggest beta test the world has ever known --
Windows"
-- Victor Wheatman, Gartner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: number_format_01.diff
Type: text/x-patch
Size: 14024 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20041220/29708c8a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20041220/29708c8a/attachment.sig>


More information about the Mauve-patches mailing list