harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject Re: [classlib][math]three tests fail, anyone else see this?
Date Wed, 27 Sep 2006 06:14:05 GMT
Yes, is see failures. I guess that a cause may be math module
internalization.

Thanks,
Stepan.


On 9/27/06, Paulex Yang wrote:
>
> Anyone else see these test errors of BigDecimalConstructorsTest?
>
> testConstrDoubleNaN            Failure    Improper exception message
> expected:<...e...> but was:<...y...>
> testConstrDoublePosInfinity    Failure    Improper exception message
> expected:<...e...> but was:<...y...>
> testConstrDoubleNegInfinity    Failure    Improper exception message
> expected:<...e...> but was:<...y...>
>
>
> I believe it is caused by the patch of i18n message properties, it
> returns "Infinity or NaN", I've updated it at revision r450333, but is
> it necessary to verify exception message so strictly like this?
>
> <code>
>        try {
>            new BigDecimal(a);
>            fail("NumberFormatException has not been caught");
>        } catch (NumberFormatException e) {
>            assertEquals("Improper exception message", "Infinite or NaN",
>                    e.getMessage());
>        }
> </code>
>
>
>
>
>
> --
> Paulex Yang
> China Software Development Lab
> IBM
>
>
>
------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message