This is the mail archive of the mauve-discuss@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about the test /gnu/testlet/java/util/Currency/Taiwan.java


On Mon, 2011-09-12 at 16:13 +0200, Pavel Tisnovsky wrote:
> Mark Wielaard wrote:
> > On Fri, 2011-08-19 at 10:40 +0200, Pavel Tisnovsky wrote:
> >> Hi,
> >>
> >> I think that the number of fraction digits for Taiwan (TWD) currency should be
> >> set to 2, not to 0, according to (for example) these pages:
> >>
> >> http://www.londonfx.co.uk/ccylist.html
> >> http://en.wikipedia.org/wiki/ISO_4217
> >>
> >> Can I fix it?
> > 
> > Sure, do you have a patch?
> > 
> Yes, here is:
> 
> diff -u /mauve-orig/mauve/gnu/testlet/java/util/Currency/Taiwan.java
> /mauve/mauve/gnu/testlet/java/util/Currency/Taiwan.java
> --- /mauve-orig/mauve/gnu/testlet/java/util/Currency/Taiwan.java	2008-07-24
> 18:02:14.000000000 +0200
> +++ /mauve/mauve/gnu/testlet/java/util/Currency/Taiwan.java	2011-09-12
> 16:07:46.000000000 +0200
> @@ -37,7 +37,7 @@
>    private static final Locale TEST_LOCALE = Locale.TAIWAN;
>    private static final String ISO4217_CODE = "TWD";
>    private static final String CURRENCY_SYMBOL = "NT$";
> -  private static final int FRACTION_DIGITS = 0;
> +  private static final int FRACTION_DIGITS = 2;
> 
>    public void test(TestHarness harness)
>    {

Yeah, based on those two documents, that seems the correct patch.

Thanks,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]